cdocparser
Advanced tools
Comparing version 0.12.1 to 0.12.2
@@ -44,3 +44,3 @@ 'use strict'; | ||
linePattern = | ||
'(?:[ \\t]*' + | ||
'^(?:[ \\t]*' + | ||
escapeStringRegexp(lineCommentStyle) + | ||
@@ -47,0 +47,0 @@ '.*\\S*[\\s]?)+$'; |
{ | ||
"name": "cdocparser", | ||
"version": "0.12.1", | ||
"version": "0.12.2", | ||
"description": "Extract C style comments and extract context from source", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -230,2 +230,6 @@ CDocParser | ||
#### 0.12.2 | ||
* Fix a bug where poster comments could be deteced inside strings. | ||
#### 0.12.1 | ||
@@ -232,0 +236,0 @@ |
@@ -96,2 +96,12 @@ var fs = require('fs'); | ||
it('should not parse line poster inside strings', function () { | ||
var comments = getCommentsFrom('linePosterStart.test.scss'); | ||
assert.deepEqual(comments, [{ | ||
lines: [ 'Only this poster comment!' ], | ||
type: 'poster', | ||
commentRange: { start: 1, end: 3 }, | ||
context: { type: 'testCtx' } | ||
}]); | ||
}); | ||
}); | ||
@@ -98,0 +108,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
42519
22
849
336