Skip to content

Commit

Permalink
url: improve urlpattern regexp performance
Browse files Browse the repository at this point in the history
PR-URL: #57136
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Pietro Marchini <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Ulises Gascón <[email protected]>
  • Loading branch information
anonrig authored Feb 21, 2025
1 parent e027791 commit 9e6a62f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_url_pattern.cc
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ URLPatternRegexProvider::create_instance(std::string_view pattern,
bool ignore_case) {
auto isolate = Isolate::GetCurrent();
auto env = Environment::GetCurrent(isolate);
int flags = RegExp::Flags::kUnicodeSets;
int flags = RegExp::Flags::kUnicodeSets | RegExp::Flags::kDotAll;
if (ignore_case) {
flags |= static_cast<int>(RegExp::Flags::kIgnoreCase);
}
Expand Down

0 comments on commit 9e6a62f

Please sign in to comment.