cdocparser
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20160
17
394
155