1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 19:47:45 +00:00

Update src/uu/expr/src/syntax_tree.rs

This commit is contained in:
Sylvestre Ledru 2024-09-17 11:47:20 +02:00 committed by Joseph Jon Booker
parent 6701c6ef44
commit 8c27c7f3f2

View file

@ -211,7 +211,7 @@ fn check_posix_regex_errors(pattern: &str) -> ExprResult<()> {
.checked_sub(1) .checked_sub(1)
.ok_or(ExprError::UnmatchedClosingBrace)?; .ok_or(ExprError::UnmatchedClosingBrace)?;
let mut repetition = repeating_pattern_text[..repeating_pattern_text.len() - 1] let mut repetition = repeating_pattern_text[..repeating_pattern_text.len() - 1]
.splitn(2, |x| x == ','); .splitn(2, ',');
match ( match (
repetition repetition
.next() .next()