Comparing version 2.1.0 to 2.1.1
# Tippex changelog | ||
## 2.1.1 | ||
* Handle `$` in template literals ([#1](https://github.com/Rich-Harris/tippex/issues/1)) | ||
* Fix crash on specific comments ([#8](https://github.com/Rich-Harris/tippex/issues/8)) | ||
## 2.1.0 | ||
@@ -4,0 +10,0 @@ |
@@ -117,3 +117,3 @@ var keywords = /(case|delete|do|else|in|instanceof|new|return|throw|typeof|void)\s*$/; | ||
} | ||
return templateString; | ||
return templateString(char, i); | ||
} | ||
@@ -163,3 +163,4 @@ | ||
var token = ambiguous.exec(substr)[1]; | ||
var token = ambiguous.exec(substr); | ||
if (token) token = token[1]; | ||
@@ -166,0 +167,0 @@ if (token === ')') { |
@@ -123,3 +123,3 @@ (function (global, factory) { | ||
} | ||
return templateString; | ||
return templateString(char, i); | ||
} | ||
@@ -169,3 +169,4 @@ | ||
var token = ambiguous.exec(substr)[1]; | ||
var token = ambiguous.exec(substr); | ||
if (token) token = token[1]; | ||
@@ -172,0 +173,0 @@ if (token === ')') { |
{ | ||
"name": "tippex", | ||
"description": "Find and erase strings and comments in JavaScript code", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"author": "Rich Harris", | ||
@@ -6,0 +6,0 @@ "main": "dist/tippex.umd.js", |
@@ -118,3 +118,3 @@ const keywords = /(case|delete|do|else|in|instanceof|new|return|throw|typeof|void)\s*$/; | ||
} | ||
return templateString; | ||
return templateString( char, i ); | ||
} | ||
@@ -164,3 +164,4 @@ | ||
const token = ambiguous.exec( substr )[1]; | ||
let token = ambiguous.exec( substr ); | ||
if ( token ) token = token[1]; | ||
@@ -167,0 +168,0 @@ if ( token === ')' ) { |
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
60894
716