Skip to content

fix: simplify regex declaration and usage for class replacement#104

Open
Toxic209 wants to merge 1 commit into
burkeholland:masterfrom
Toxic209:master
Open

fix: simplify regex declaration and usage for class replacement#104
Toxic209 wants to merge 1 commit into
burkeholland:masterfrom
Toxic209:master

Conversation

@Toxic209

Copy link
Copy Markdown

Fix invalid RegExp constructor usage

This PR fixes an invalid usage of the RegExp constructor where a RegExp literal was passed along with flags.
Passing a RegExp object together with flags results in a runtime error.

The fix replaces it with a valid equivalent expression while preserving existing behavior.

**No functional or behavioral changes, just a correctness and runtime-safety fix.

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.

1 participant