amdextract
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -15,3 +15,3 @@ /* | ||
var defineRegExp = /(?:\/[\*\/]\s*exceptsPaths\s*\:\s*([^]+?)\s*(?:(?:\*\/)|(?:[\r\n]+)))?\s*define\s*\(\s*(?:['"](.*)['"]\s*,\s*)?(?:\[\s*([^]*?)\s*\]\s*,)?\s*function\s*\(\s*([^]*?)\s*\)\s*\{/gm; | ||
var commentRegExp = /(?:[^\\](\/\*[^]*?\*\/))|(?:[^\\](\/\/.*?)$)/gm; | ||
var commentRegExp = /(?:([^\\])(\/\*[^]*?\*\/))|(?:([^\\])(\/\/.*?)$)/gm; | ||
var commaRegExp = /(\s*),(\s*)/; | ||
@@ -82,5 +82,7 @@ | ||
if (text) { | ||
text = text.replace(commentRegExp, function (match, comment) { | ||
text = text.replace(commentRegExp, function (match, chr1, comment1, chr2, comment2) { | ||
var chr = chr1 || chr2; | ||
var comment = comment1 || comment2; | ||
comments.push(comment); | ||
return ''; | ||
return chr; | ||
}); | ||
@@ -87,0 +89,0 @@ } |
{ | ||
"name": "amdextract", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Extracts AMD modules, their parts and an optimized output without unused dependencies. (Uses AST to find out unused dependencies)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -121,2 +121,3 @@ # amdextract [![Build Status](https://travis-ci.org/mehdishojaei/amdextract.png)](https://travis-ci.org/mehdishojaei/amdextract) | ||
## Release History | ||
* 2014-07-21 v2.0.3 Fix an issue related to comment detection. | ||
* 2014-07-21 v2.0.2 Fix an issue related to RegExp literals. | ||
@@ -123,0 +124,0 @@ * 2014-07-20 v2.0.0 Uses AST to find out unused dependencies. |
@@ -0,0 +0,0 @@ // General test for all cases. |
@@ -0,0 +0,0 @@ // General test for all cases. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
21598
383
128