strip-comments
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -96,3 +96,3 @@ 'use strict'; | ||
} | ||
return str.split(comment.raw).join(''); | ||
return str.replace(comment.raw, ''); | ||
} | ||
@@ -99,0 +99,0 @@ |
{ | ||
"name": "strip-comments", | ||
"description": "Strip comments from code. Removes line comments, block comments, the first comment only, or all comments. Optionally leave protected comments unharmed.", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"homepage": "https://github.com/jonschlinkert/strip-comments", | ||
"author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
"repository": "jonschlinkert/strip-comments", | ||
"bugs": "https://github.com/jonschlinkert/strip-comments/issues", | ||
"bugs": { | ||
"url": "https://github.com/jonschlinkert/strip-comments/issues" | ||
}, | ||
"license": "MIT", | ||
@@ -10,0 +12,0 @@ "files": [ |
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
8441
1