-
-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
I have confirmed with eslint4b v7.20.0.
The following source code is the source code for at 25,907 line of the eslint4b/dist/core-rules.js file causing the infinite loop.
while (match = /\\[^\d]/gu.exec(value)) {
validateString(node, match);
}In the original source code, the regular expression correctly uses one instance, so it doesn't go into an infinite loop.
const pattern = /\\[^\d]/gu;
let match;
while ((match = pattern.exec(value))) {
validateString(node, match);
}I think it's probably a build system bug, but I opened an issue here because I don't know which build system is wrong.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels