Comparing version 0.8.0 to 0.8.1
@@ -0,1 +1,8 @@ | ||
0.8.1 / 2016-03-29 | ||
================== | ||
* Fix: Dox will no longer falsely enter or exit string blocks when encountering an escaped quote or double-quote | ||
* Deps: commander@2.9.0 | ||
* Deps: marked@0.3.5 | ||
0.8.0 / 2015-05-27 | ||
@@ -2,0 +9,0 @@ ================== |
@@ -67,6 +67,10 @@ /*! | ||
, lineNumStarting = 1 | ||
, parentContext; | ||
, parentContext | ||
, withinEscapeChar | ||
, currentStringQuoteChar; | ||
for (var i = 0, len = js.length; i < len; ++i) { | ||
withinEscapeChar = withinString && !withinEscapeChar && js[i - 1] == '\\'; | ||
// start comment | ||
@@ -128,4 +132,12 @@ if (!withinMultiline && !withinSingle && !withinString && | ||
buf += js[i]; | ||
} else if (!withinSingle && !withinMultiline && ('\'' == js[i] || '"' == js[i])) { | ||
withinString = !withinString; | ||
} else if (!withinSingle && !withinMultiline && !withinEscapeChar && ('\'' == js[i] || '"' == js[i])) { | ||
if(withinString) { | ||
if(js[i] == currentStringQuoteChar) { | ||
withinString = false; | ||
} | ||
} else { | ||
withinString = true; | ||
currentStringQuoteChar = js[i]; | ||
} | ||
buf += js[i]; | ||
@@ -132,0 +144,0 @@ } else { |
{ | ||
"name": "dox", | ||
"description": "Markdown / JSdoc documentation generator", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"author": "TJ Holowaychuk <tj@vision-media.ca>", | ||
@@ -31,10 +31,11 @@ "contributors": [ | ||
"dependencies": { | ||
"commander": "~2.8.1", | ||
"commander": "~2.9.0", | ||
"jsdoctypeparser": "^1.2.0", | ||
"marked": ">=0.3.1" | ||
"marked": "~0.3.5" | ||
}, | ||
"devDependencies": { | ||
"mocha": "~2.2.5", | ||
"mocha": "~2.4.5", | ||
"should": "~6.0.3" | ||
}, | ||
"license": "MIT", | ||
"scripts": { | ||
@@ -41,0 +42,0 @@ "test": "make test" |
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
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
46567
0
768
+ Addedcommander@2.9.0(transitive)
+ Addedmarked@0.3.19(transitive)
- Removedcommander@2.8.1(transitive)
- Removedmarked@14.1.2(transitive)
Updatedcommander@~2.9.0
Updatedmarked@~0.3.5