mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
expr: Fix parsing regex range quantifier
This commit is contained in:
parent
ca6a10ea9a
commit
2b565612ee
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue