mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:07:34 +00:00
LibRegex: Allow empty character classes in {B,E}RE
This commit is contained in:
parent
189922f442
commit
5f4e1338a1
1 changed files with 4 additions and 4 deletions
|
@ -304,11 +304,11 @@ ALWAYS_INLINE bool AbstractPosixParser::parse_bracket_expression(Vector<CompareT
|
|||
}
|
||||
}
|
||||
|
||||
if (values.size())
|
||||
if (!values.is_empty()) {
|
||||
match_length_minimum = 1;
|
||||
|
||||
if (values.first().type == CharacterCompareType::Inverse)
|
||||
match_length_minimum = 0;
|
||||
if (values.first().type == CharacterCompareType::Inverse)
|
||||
match_length_minimum = 0;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue