1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:17:35 +00:00

LibJS+LibLocale: Port remaining locale APIs to String

This commit is contained in:
Timothy Flynn 2023-01-21 10:04:12 -05:00 committed by Linus Groh
parent d73a143004
commit 20536897e4
6 changed files with 58 additions and 50 deletions

View file

@ -114,7 +114,7 @@ static auto find_regional_values_for_locale(StringView locale, GetRegionalValues
return return_default_values();
if (!language->region.has_value())
language = add_likely_subtags(*language);
language = add_likely_subtags(*language).release_value_but_fixme_should_propagate_errors();
if (!language.has_value() || !language->region.has_value())
return return_default_values();