eslint-plugin-optimize-regex
eslint-plugin-optimize-regex copied to clipboard
Optimize regex literals
Maybe check the optimized regex by safe-regex. My Regex skills are kind of limited to understand why one is deemed safe and the other one not. But I think, it...
Bumps [ajv](https://github.com/ajv-validator/ajv) from 6.12.2 to 6.12.6. Release notes Sourced from ajv's releases. v6.12.6 Fix performance issue of "url" format. v6.12.5 Fix uri scheme validation (@ChALkeR). Fix boolean schemas with strictKeywords...
`/\]/u` is getting optimized to `/]/u` which produces `Parsing error: Invalid regular expression: /]/: Lone quantifier brackets`.
*Cross-posted from https://github.com/sindresorhus/eslint-plugin-unicorn/issues/895, as both plugins have the same issue.* This regexp is autofixed like this: ```diff - /lorem(?:.|\n)*?ipsum/m + /lorem[.\n]*?ipsum/m ``` This breaks the regex: * `(.|\n)` means "any...
Two unicode character class escapes break the plugin. Source: ```ts const r = /[\p{P}\p{Z}]/u ``` Error: ``` Oops! Something went wrong! :( ESLint: 8.29.0 TypeError: Cannot read properties of undefined...
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.9.6 to 7.23.2. Release notes Sourced from @babel/traverse's releases. v7.23.2 (2023-10-11) NOTE: This release also re-publishes @babel/core, even if it does not appear in the linked release...
Any regex using the `d` flag is reported. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags Ideally, this should be fixed in the upstream, but as the `d` flag doesn't really change how the regex executes, a...
This adds support for Eslint 9's new flat config system. BREAKING Eslint 8 and below support has moved to `recommended-legacy` and `all-legacy` configs This should be a major version bump.