-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need to escape the regEx characters on line 239 #10
Comments
It looks like the author abandoned his project. (_ _!) |
Hi, @up209d Could you provide a test to check this error, please? Thanks. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Line 239
str = str.replace(new RegExp('"' + sKey + '"', 'g'), '"' + oKeys[sKey] + '"');
I think you might forget to escape the regEx characters here it should be:
str = str.replace(new RegExp(escapeRegExp('"' + sKey + '"'), 'g'), '"' + oKeys[sKey] + '"');
If not, when trying to decompress, this case
/"("/
will corrupt the process. Resulted with errorUncaught SyntaxError: Invalid regular expression: /"("/: Unterminated group
The text was updated successfully, but these errors were encountered: