Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cdocparser

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cdocparser - npm Package Compare versions

Comparing version 0.3.2 to 0.3.3

test/fixtures/lineIndentionBefore.test.scss

2

index.js

@@ -14,3 +14,3 @@ 'use strict';

var CommentExtractor = (function () {
var docCommentRegEx = /(?:\/\/\/.*\S*[\s]?)+$|^[ \t]*\/\*\*((?:[^*]|[\r\n]|(?:\*+(?:[^*/]|[\r\n])))*)(\*+)\//gm;
var docCommentRegEx = /(?:[ \t]*\/\/\/.*\S*[\s]?)+$|^[ \t]*\/\*\*((?:[^*]|[\r\n]|(?:\*+(?:[^*/]|[\r\n])))*)(\*+)\//gm;

@@ -17,0 +17,0 @@ /**

{
"name": "cdocparser",
"version": "0.3.2",
"version": "0.3.3",
"description": "Extract C style comments and extract context from source",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -120,2 +120,6 @@ CDocParser

#### 0.3.3
* Fix a bug with line comments that are indented
#### 0.3.2

@@ -122,0 +126,0 @@

@@ -59,2 +59,8 @@ var fs = require('fs');

});
it('should extract line commments with leading spaces', function(){
var comments = getCommentsFrom('lineIndentionBefore.test.scss');
assert.deepEqual(comments[0].lines, [ 'Just a test', ' ' ]);
assert.deepEqual(comments[0].type, 'poster');
});
});

@@ -61,0 +67,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc