1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

expr: Fix parsing regex range quantifier

This commit is contained in:
Teemu Pätsi 2025-05-27 16:43:43 +03:00
parent ca6a10ea9a
commit 2b565612ee
No known key found for this signature in database

View file

@ -295,8 +295,9 @@ where
if pattern_chars_clone.peek().is_none() {
return Err(ExprError::UnmatchedOpeningBrace);
}
quantifier.push(curr);
if prev != '\0' {
quantifier.push(prev);
}
prev = curr;
}