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

LibRegex: Ensure escaped code points are exactly 4 digits in length

This commit is contained in:
Timothy Flynn 2021-08-11 09:58:08 -04:00 committed by Linus Groh
parent e887314472
commit 2e4b6fd1ac
3 changed files with 12 additions and 7 deletions

View file

@ -210,8 +210,8 @@ private:
Allow,
Disallow,
};
StringView read_digits_as_string(ReadDigitsInitialZeroState initial_zero = ReadDigitsInitialZeroState::Allow, bool hex = false, int max_count = -1);
Optional<unsigned> read_digits(ReadDigitsInitialZeroState initial_zero = ReadDigitsInitialZeroState::Allow, bool hex = false, int max_count = -1);
StringView read_digits_as_string(ReadDigitsInitialZeroState initial_zero = ReadDigitsInitialZeroState::Allow, bool hex = false, int max_count = -1, int min_count = -1);
Optional<unsigned> read_digits(ReadDigitsInitialZeroState initial_zero = ReadDigitsInitialZeroState::Allow, bool hex = false, int max_count = -1, int min_count = -1);
StringView read_capture_group_specifier(bool take_starting_angle_bracket = false);
struct Script {