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? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
I copy–pasted the examples into my code editor:
https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v36.0.0/docs/rules/no-unsafe-regex.md
The second example that should fail, does not fail:
If you want to copy-paste:
let regex; regex = /^(a?){25}(a){25}$/; regex = RegExp(Array(27).join('a?') + Array(27).join('a')); regex = /(x+x+)+y/; regex = /foo|(x+x+)+y/; regex = /(a+){10}y/; regex = /(a+){2}y/; regex = /(.*){1,32000}[bc]/; regex = /\bOakland\b/; regex = /\b(Oakland|San Francisco)\b/i; regex = /^\d+1337\d+$/i; regex = /^\d+(1337|404)\d+$/i; regex = /^\d+(1337|404)*\d+$/i; regex = RegExp(Array(26).join('a?') + Array(26).join('a'));
The text was updated successfully, but these errors were encountered:
no-unsafe-regex is known problematic see #153. I'll update the examples.
no-unsafe-regex
Sorry, something went wrong.
fisker
Successfully merging a pull request may close this issue.
I copy–pasted the examples into my code editor:
https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v36.0.0/docs/rules/no-unsafe-regex.md
The second example that should fail, does not fail:
If you want to copy-paste:
The text was updated successfully, but these errors were encountered: