Skip to content

Do not break regex expressions when caching #908

@binarykitchen

Description

@binarykitchen

Hello again,

I notice Lite Speed is modifying code and breaking regex expressions in JavaScript. When the plugin is enabled, I see this error in the browser:

83e922e0dc6b46a25530bfc784899933.js?ver=aa4bc:970 Uncaught SyntaxError: Invalid regular expression: /\bgsa\/([\w\.]+).*safari\],[VERSION,[NAME,'GSA'],[TYPE,INAPP]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i: Unmatched ')

Attached is the corrupt JS file returned by LiteSpeed
83e922e0dc6b46a25530bfc784899933.js

The actual contents are here:
https://github.com/binarykitchen/videomail-for-ninja-forms/blob/develop/target/js/videomail-client/index.min.js#L11192

When I compare both, I can see that you're modifying regexes and hence are breaking other plugins. Can you please investigate? Thanks

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