You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling String#replaceAll() and String#matchAll() with non-global RegExp, it will be a runtime error. I hope to catch this pattern during linting.
Motivation
When calling
String#replaceAll()
andString#matchAll()
with non-global RegExp, it will be a runtime error. I hope to catch this pattern during linting.https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replaceAll#exceptions
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/matchAll#exceptions
Description
Forbid calling
String#replaceAll()
orString#matchAll()
with non-global pattern.Examples
The text was updated successfully, but these errors were encountered: