mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
expr: Remove redundant escaping of '*' character
This commit is contained in:
parent
aae62072d8
commit
4ee93ed6d8
1 changed files with 0 additions and 1 deletions
|
@ -160,7 +160,6 @@ impl StringOp {
|
|||
let first = pattern_chars.next();
|
||||
match first {
|
||||
Some('^') => {} // Start of string anchor is already added
|
||||
Some('*') => re_string.push_str(r"\*"),
|
||||
Some('$') if !is_end_of_expression(&pattern_chars) => re_string.push_str(r"\$"),
|
||||
Some('\\') if right.len() == 1 => return Err(ExprError::TrailingBackslash),
|
||||
Some(char) => re_string.push(char),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue