mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +00:00
LibWeb: Fix is valid time not possible compare bug
This commit is contained in:
parent
6bde5a1f85
commit
be511fdcf7
Notes:
sideshowbarker
2024-07-17 05:13:53 +09:00
Author: https://github.com/bplaat Commit: https://github.com/SerenityOS/serenity/commit/be511fdcf7 Pull-request: https://github.com/SerenityOS/serenity/pull/22306 Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ bool is_valid_time_string(StringView value)
|
|||
// 1. A U+002E FULL STOP character (.)
|
||||
// 2. One, two, or three ASCII digits, representing the fractional part of second
|
||||
auto parts = value.split_view(':');
|
||||
if (parts.size() != 2 || parts.size() != 3)
|
||||
if (parts.size() != 2 && parts.size() != 3)
|
||||
return false;
|
||||
if (parts[0].length() != 2)
|
||||
return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue