mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-03 13:00:29 +00:00
LibUnicode: Ignore U+200F when parsing format identifiers
Noticed this while implementing multiple identifier support. We were errantly parsing U+200F as a lone identifier in some Hebrew formats.
This commit is contained in:
parent
04b8b87c17
commit
c24a350a18
Notes:
sideshowbarker
2024-07-18 01:04:10 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/c24a350a18e Pull-request: https://github.com/SerenityOS/serenity/pull/10939 Reviewed-by: https://github.com/linusg ✅
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ struct UnicodeLocaleData {
|
|||
|
||||
static String parse_identifiers(String pattern, StringView replacement, UnicodeLocaleData& locale_data, NumberFormat& format)
|
||||
{
|
||||
static Utf8View whitespace { "\u0020\u00a0"sv };
|
||||
static Utf8View whitespace { "\u0020\u00a0\u200f"sv };
|
||||
|
||||
while (true) {
|
||||
Utf8View utf8_pattern { pattern };
|
||||
|
|
Loading…
Reference in a new issue