mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-13 11:42:38 +03:00
LibUnicode: Fix typo in percent format parser
Just by sheer luck this had no actual effect because the decimal format prefix has the same length as the percent format prefix.
This commit is contained in:
parent
061fa8a1ca
commit
3645f6a0fc
Notes:
sideshowbarker
2024-07-18 01:09:03 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/3645f6a0fcb Pull-request: https://github.com/SerenityOS/serenity/pull/10921 Reviewed-by: https://github.com/linusg ✅
@ -253,7 +253,7 @@ static void parse_number_systems(String locale_numbers_path, UnicodeLocaleData&
|
||||
number_system.currency_short_formats = parse_number_format(short_format.as_object());
|
||||
}
|
||||
} else if (key.starts_with(percent_formats_prefix)) {
|
||||
auto system = key.substring(decimal_formats_prefix.length());
|
||||
auto system = key.substring(percent_formats_prefix.length());
|
||||
auto& number_system = ensure_number_system(system);
|
||||
|
||||
auto format_object = value.as_object().get("standard"sv);
|
||||
|
Loading…
Reference in New Issue
Block a user