mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibRegex: Treat the UnicodeSets flag as Unicode
Fixes /.../v not being interpreted as a unicode pattern.
This commit is contained in:
committed by
Tim Flynn
parent
14ebcd4881
commit
ea3b7efd91
Notes:
github-actions[bot]
2025-02-28 19:32:42 +00:00
Author: https://github.com/alimpfard Commit: https://github.com/LadybirdBrowser/ladybird/commit/ea3b7efd916 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3730
@@ -627,7 +627,7 @@ bool Regex<Parser>::attempt_rewrite_entire_match_as_substring_search(BasicBlockL
|
||||
|
||||
auto& bytecode = parser_result.bytecode;
|
||||
|
||||
auto is_unicode = parser_result.options.has_flag_set(AllFlags::Unicode);
|
||||
auto is_unicode = parser_result.options.has_flag_set(AllFlags::Unicode) || parser_result.options.has_flag_set(AllFlags::UnicodeSets);
|
||||
|
||||
// We have a single basic block, let's see if it's a series of character or string compares.
|
||||
StringBuilder final_string;
|
||||
|
||||
Reference in New Issue
Block a user