Skip to content

Need to escape the regEx characters on line 239 #10

Open
@up209d

Description

@up209d

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 error Uncaught SyntaxError: Invalid regular expression: /"("/: Unterminated group

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions