1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 03:57: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() { if pattern_chars_clone.peek().is_none() {
return Err(ExprError::UnmatchedOpeningBrace); return Err(ExprError::UnmatchedOpeningBrace);
} }
if prev != '\0' {
quantifier.push(curr); quantifier.push(prev);
}
prev = curr; prev = curr;
} }