Skip to content

Conversation

@Toxic209
Copy link

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