LibUnicode: Fix typo in format pattern parser
See: https://unicode.org/reports/tr35/tr35-dates.html#dfst-day
This commit is contained in:
parent
bdb8fc54f2
commit
b17c6ab661
Notes:
sideshowbarker
2024-07-17 23:02:11 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/b17c6ab6615 Pull-request: https://github.com/SerenityOS/serenity/pull/11199 Reviewed-by: https://github.com/linusg ✅
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue