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

refactor(js_analyze): remove support for dynamic regexes #5226

Merged
merged 1 commit into from
Mar 1, 2025

Conversation

Conaclos
Copy link
Member

@Conaclos Conaclos commented Mar 1, 2025

Summary

This PR removes support for dynamically built regexes for the lint rules noControlCharactersInRegex and noMisleadingCharacterClass.

This allows us to simplify the rules and avoid half-backed support.
Also, this makes these rules more consistent with other rules related to regexes.

Test Plan

I updated the tests and snapshots

@github-actions github-actions bot added A-Linter Area: linter L-JavaScript Language: JavaScript and super languages labels Mar 1, 2025
@Conaclos Conaclos force-pushed the conaclos/remove-dynamic-regex-support branch from bd75a78 to 7aafac9 Compare March 1, 2025 12:49
Copy link

codspeed-hq bot commented Mar 1, 2025

CodSpeed Performance Report

Merging #5226 will not alter performance

Comparing conaclos/remove-dynamic-regex-support (68fdc34) with main (4ce59b8)

Summary

✅ 97 untouched benchmarks

@Conaclos Conaclos force-pushed the conaclos/remove-dynamic-regex-support branch from 7aafac9 to 68fdc34 Compare March 1, 2025 14:13
@github-actions github-actions bot added the A-Project Area: project label Mar 1, 2025
@Conaclos Conaclos merged commit 983ab6f into main Mar 1, 2025
13 checks passed
@Conaclos Conaclos deleted the conaclos/remove-dynamic-regex-support branch March 1, 2025 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Linter Area: linter A-Project Area: project L-JavaScript Language: JavaScript and super languages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants