Skip to content

Commit d922153

Browse files
anonrigtargos
authored andcommitted
url: improve urlpattern regexp performance
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]>
1 parent c6ddfa5 commit d922153

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_url_pattern.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ URLPatternRegexProvider::create_instance(std::string_view pattern,
7777
bool ignore_case) {
7878
auto isolate = Isolate::GetCurrent();
7979
auto env = Environment::GetCurrent(isolate);
80-
int flags = RegExp::Flags::kUnicodeSets;
80+
int flags = RegExp::Flags::kUnicodeSets | RegExp::Flags::kDotAll;
8181
if (ignore_case) {
8282
flags |= static_cast<int>(RegExp::Flags::kIgnoreCase);
8383
}

0 commit comments

Comments
 (0)