diff options
author | Timothy Flynn <trflynn89@pm.me> | 2021-11-16 17:08:43 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-11-16 23:14:09 +0000 |
commit | c24a350a18e005a37f39b93f53708ee8ec73c1cb (patch) | |
tree | 74b272c38cde56e89a6291d715ea4fc054267649 | |
parent | 04b8b87c17ba21d3969c0e5c52dc1b01eddd8b80 (diff) | |
download | serenity-c24a350a18e005a37f39b93f53708ee8ec73c1cb.zip |
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.
-rw-r--r-- | Meta/Lagom/Tools/CodeGenerators/LibUnicode/GenerateUnicodeNumberFormat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GenerateUnicodeNumberFormat.cpp b/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GenerateUnicodeNumberFormat.cpp index a1b20e404b..40d6d504cd 100644 --- a/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GenerateUnicodeNumberFormat.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GenerateUnicodeNumberFormat.cpp @@ -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 }; |