diff options
Diffstat (limited to 'crates/shirabe-symfony-process')
| -rw-r--r-- | crates/shirabe-symfony-process/src/process.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/crates/shirabe-symfony-process/src/process.rs b/crates/shirabe-symfony-process/src/process.rs index 6fea07c8..96853e90 100644 --- a/crates/shirabe-symfony-process/src/process.rs +++ b/crates/shirabe-symfony-process/src/process.rs @@ -1043,11 +1043,7 @@ impl Process { if argument.contains('\0') { argument = argument.replace('\0', "?"); } - if !preg_match( - php_regex!(r#"/[()%!^"<>&|\s\[\]=;*?'$]/"#), - &argument, - &mut Vec::new(), - ) { + if preg_match(php_regex!(r#"/[()%!^"<>&|\s\[\]=;*?'$]/"#), &argument).is_none() { return argument; } argument = preg_replace(php_regex!(r"/(\\+)$/"), "$1$1", &argument); |
