-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Open
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.v8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.
Description
Version
v24.9.0
Platform
Windows 10 LTSC
Subsystem
No response
What steps will reproduce the bug?
- Open node in a CLI.
- Paste the following example regex:
var e = "-SAd"; e.match(/[\[-](?-i:\b(test|SAD|Hello)\b)/i);
- Notice how it finds a match when it shouldnt have.
How often does it reproduce? Is there a required condition?
Can be replicated almost all of the time, though sometimes its inconsistent in whether it works or not.
What is the expected behavior? Why is that the expected behavior?
In the example above it should only find a match if the case-sensitive modifier capture group finds -SAD
, no other variations.
What do you see instead?
It matches -SAd
.
Additional information
This issue is not exclusive to node.js, the same behaviour can be found in common browsers. But im hoping it can be fixed in node.js at least.
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.v8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.