AK+LibWeb: Add a UTF-16 starts/ends with wrapper for a single code unit

This commit is contained in:
Timothy Flynn 2025-08-06 07:43:11 -04:00 committed by Jelle Raaijmakers
commit 1bc80848fb
Notes: github-actions[bot] 2025-08-07 00:07:32 +00:00
8 changed files with 26 additions and 9 deletions

View file

@ -55,7 +55,7 @@ bool is_valid_week_string(Utf16View const& value)
if (!is_ascii_digit(digit))
return false;
if (!parts[1].starts_with("W"sv))
if (!parts[1].starts_with('W'))
return false;
if (!is_ascii_digit(parts[1].code_unit_at(1)))
return false;