aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/command/global_command.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/command/global_command.rs')
-rw-r--r--crates/shirabe/src/command/global_command.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/shirabe/src/command/global_command.rs b/crates/shirabe/src/command/global_command.rs
index 21375141..f31d29c4 100644
--- a/crates/shirabe/src/command/global_command.rs
+++ b/crates/shirabe/src/command/global_command.rs
@@ -8,9 +8,8 @@ use crate::console::input::InputArgument;
use crate::factory::Factory;
use crate::util::Filesystem;
use crate::util::Platform;
-use shirabe_pcre::Preg;
use shirabe_php_shim::{
- LogicException, RuntimeException, chdir, impl_php_class, php_regex, preg_split,
+ LogicException, RuntimeException, chdir, impl_php_class, php_regex, preg_replace2, preg_split,
};
use shirabe_symfony_console::command::Command;
use shirabe_symfony_console::completion::CompletionInput;
@@ -105,11 +104,12 @@ impl GlobalCommand {
));
}
- let new_input_str = Preg::replace4(
+ let new_input_str = preg_replace2(
php_regex!(r"{\bg(?:l(?:o(?:b(?:a(?:l)?)?)?)?)?\b}"),
"",
&Self::input_to_string(&*input.borrow())?,
1,
+ None,
);
self.reset_composer()?;