mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
expr: Fix parsing regex range quantifier
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user