Skip to content
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

[Bug]: Error Minimizing JSON File #175

Open
cemalgnlts opened this issue Dec 17, 2023 · 1 comment
Open

[Bug]: Error Minimizing JSON File #175

cemalgnlts opened this issue Dec 17, 2023 · 1 comment

Comments

@cemalgnlts
Copy link

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

@TaiYouWeb
Copy link

TaiYouWeb commented Jan 12, 2024

About

actively maintained fork of html-minifier - minify HTML, CSS and JS code using terser - supports ES6 code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants