Skip to content

JSMin: Unterminated RegExp #22

Description

@ficike

Hello!

I got an interesting error when trying to compress the following js code snippet:

opt.t = opt.tstart * (1 - i++/(times -1));

Exception:
UnterminatedRegExpException
JSMin: Unterminated RegExp at byte 406780: /(times -1));

I tried to fix it by splitting the calculations into smaller variables to avoid parentheses but it didn't help.
It always looked like a regular expression for the division sign.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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