Skip to content

Commit

Permalink
fix: improve regexp perf
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey committed Dec 5, 2024
1 parent 3a93b7f commit b803e19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/outer-code-matches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ enclosedPatterns.push(
},
{
// Single quote string
match: /'(?:\\.|[^'\\]+)*'/y,
match: /'(?:\\.|[^'\\])*'/y,
},
{
// Double quote string
match: /"(?:\\.|[^"\\]+)*"/y,
match: /"(?:\\.|[^"\\])*"/y,
},
{
// Template literal
Expand Down

0 comments on commit b803e19

Please sign in to comment.