mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 19:47:45 +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() {
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue