We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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.
latest
Chrome
No response
None
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
It's called html-minifier for a reason.
html-minifier
Try wrapping it in <script> like you can see in the screenshot:
<script>
To only minimize pure json, there are other tools that you can use. For example jq. https://remarkablemark.org/blog/2021/09/30/jq-minify-json/
jq
No branches or pull requests
What happened?
I tried to minimize this JSON file:
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
The text was updated successfully, but these errors were encountered: