html-minifier-terser icon indicating copy to clipboard operation
html-minifier-terser copied to clipboard

[Bug]: Error Minimizing JSON File

Open cemalgnlts opened this issue 7 months ago • 1 comments

What happened?

I tried to minimize this JSON file:

{
  "match": "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(catch|finally|throw|try)(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))"
}

The error I received: Error: Parse Error: <![$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(catch|finally|throw|try)(?![$[:alnum:]])(?:(?=\.\.\.)|(?!\.))" }

You can go to https://terser.org/html-minifier-terser/ and paste the JSON content and examine it.

Version

latest

What browsers are you seeing the problem on?

Chrome

Link to reproduce

No response

Relevant log output

No response

Willing to submit a PR?

None

cemalgnlts avatar Dec 17 '23 10:12 cemalgnlts