mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 10:19:20 +00:00
LibRegex: Parse \0
as a zero-byte instead of 0x30 ("0")
This was causing some regexes to trip up. Fixes #6202.
This commit is contained in:
parent
2c94c9fa7f
commit
db321db5f4
Notes:
sideshowbarker
2024-07-18 20:37:13 +09:00
Author: https://github.com/gmta
Commit: db321db5f4
Pull-request: https://github.com/SerenityOS/serenity/pull/6203
Issue: https://github.com/SerenityOS/serenity/issues/6202
Reviewed-by: https://github.com/alimpfard ✅
3 changed files with 5 additions and 18 deletions
|
@ -178,11 +178,9 @@ private:
|
|||
enum class ReadDigitsInitialZeroState {
|
||||
Allow,
|
||||
Disallow,
|
||||
Require,
|
||||
};
|
||||
enum class ReadDigitFollowPolicy {
|
||||
Any,
|
||||
DisallowDigit,
|
||||
DisallowNonDigit,
|
||||
};
|
||||
StringView read_digits_as_string(ReadDigitsInitialZeroState initial_zero = ReadDigitsInitialZeroState::Allow, ReadDigitFollowPolicy follow_policy = ReadDigitFollowPolicy::Any, bool hex = false, int max_count = -1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue