aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/command
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/command')
-rw-r--r--crates/shirabe/src/command/global_command.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/crates/shirabe/src/command/global_command.rs b/crates/shirabe/src/command/global_command.rs
index af25eb29..21375141 100644
--- a/crates/shirabe/src/command/global_command.rs
+++ b/crates/shirabe/src/command/global_command.rs
@@ -9,7 +9,9 @@ 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};
+use shirabe_php_shim::{
+ LogicException, RuntimeException, chdir, impl_php_class, php_regex, preg_split,
+};
use shirabe_symfony_console::command::Command;
use shirabe_symfony_console::completion::CompletionInput;
use shirabe_symfony_console::completion::{CompletionSuggestions, StringOrSuggestion};
@@ -223,7 +225,7 @@ impl Command for GlobalCommand {
input: std::rc::Rc<std::cell::RefCell<dyn InputInterface>>,
output: std::rc::Rc<std::cell::RefCell<dyn OutputInterface>>,
) -> anyhow::Result<i64> {
- let tokens = Preg::split(
+ let tokens = preg_split(
php_regex!(r"{\s+}"),
&Self::input_to_string(&*input.borrow())?,
);