-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(js/string_util): drop redundant
new RegExp()
This solves #77 Regex literals (codes like `/pattern/flags`) are already instances of RegExp, thus `new RegExp(/pattern/flags)` creates an extra copy of the RegExp object, which is often not intended. This issue was introduced in iamchucky/PttChrome. This issue is fixed by rewritten `new RegExp()` codes into plain regex literals.
- Loading branch information
1 parent
7f2d668
commit 4dde4cd
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters