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

Fix regex-escaping bug #805

Merged
merged 1 commit into from
Apr 1, 2025
Merged

Fix regex-escaping bug #805

merged 1 commit into from
Apr 1, 2025

Conversation

cfredric
Copy link
Collaborator

@cfredric cfredric commented Apr 1, 2025

The existing code used character classes within a string literal, so it should have double-escaped them, e.g. "Not\\s+a...". JS provides a more concise syntax for regex literals which doesn't require double-escaping, so we'll use that instead.

@cfredric cfredric requested a review from a team as a code owner April 1, 2025 19:14
@cfredric cfredric requested a review from arichiv April 1, 2025 19:14
Copy link

github-actions bot commented Apr 1, 2025

The RWS JSON was successfully validated!

THIS PR CONTAINS SYSTEM CHANGES PLEASE REVIEW WITH CARE!

@cfredric cfredric merged commit 7a7b368 into main Apr 1, 2025
6 checks passed
@cfredric cfredric deleted the cfredric-patch-1 branch April 1, 2025 19:18
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

Successfully merging this pull request may close these issues.

2 participants