LibUnicode: Fix typo in format pattern parser

See: https://unicode.org/reports/tr35/tr35-dates.html#dfst-day
This commit is contained in:
Timothy Flynn 2021-12-08 14:50:29 -05:00 committed by Linus Groh
parent bdb8fc54f2
commit b17c6ab661
Notes: sideshowbarker 2024-07-17 23:02:11 +09:00

View file

@ -381,7 +381,7 @@ static Optional<CalendarPatternIndexType> parse_date_time_pattern(String pattern
format.day = CalendarPatternStyle::Numeric;
else
format.day = CalendarPatternStyle::TwoDigit;
} else if (all_of(segment, is_any_of("DFG"sv))) {
} else if (all_of(segment, is_any_of("DFg"sv))) {
builder.append("{day}");
format.day = CalendarPatternStyle::Numeric;
}