mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-02 04:27:12 +02:00
LibUnicode: Fix typo in format pattern parser
See: https://unicode.org/reports/tr35/tr35-dates.html#dfst-day
This commit is contained in:
committed by
Linus Groh
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 ✅
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user