mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +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();
|
let first = pattern_chars.next();
|
||||||
match first {
|
match first {
|
||||||
Some('^') => {} // Start of string anchor is already added
|
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 !is_end_of_expression(&pattern_chars) => re_string.push_str(r"\$"),
|
||||||
Some('\\') if right.len() == 1 => return Err(ExprError::TrailingBackslash),
|
Some('\\') if right.len() == 1 => return Err(ExprError::TrailingBackslash),
|
||||||
Some(char) => re_string.push(char),
|
Some(char) => re_string.push(char),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue