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:
Timothy Flynn 2021-11-16 17:08:43 -05:00 committed by Linus Groh
parent 04b8b87c17
commit c24a350a18

View file

@ -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 };