Skip to content

Commit 5fd4ab5

Browse files
authored
Merge pull request #8010 from frendsick/fix/expr-regex-range-start-of-expression
expr: Fix handling of regex range quantifiers
2 parents 685df65 + eb7bc2f commit 5fd4ab5

File tree

3 files changed

+213
-165
lines changed

3 files changed

+213
-165
lines changed

src/uu/expr/src/expr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ pub enum ExprError {
4646
UnmatchedClosingParenthesis,
4747
#[error("Unmatched \\{{")]
4848
UnmatchedOpeningBrace,
49-
#[error("Unmatched ) or \\}}")]
50-
UnmatchedClosingBrace,
5149
#[error("Invalid content of \\{{\\}}")]
5250
InvalidBracketContent,
5351
#[error("Trailing backslash")]
5452
TrailingBackslash,
53+
#[error("Regular expression too big")]
54+
TooBigRangeQuantifierIndex,
5555
}
5656

5757
impl UError for ExprError {

0 commit comments

Comments
 (0)