aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/io/console_io.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/io/console_io.rs')
-rw-r--r--crates/shirabe/src/io/console_io.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/crates/shirabe/src/io/console_io.rs b/crates/shirabe/src/io/console_io.rs
index e9ca2048..e3ba68b3 100644
--- a/crates/shirabe/src/io/console_io.rs
+++ b/crates/shirabe/src/io/console_io.rs
@@ -9,10 +9,9 @@ use crate::io::io_interface;
use crate::question::StrictConfirmationQuestion;
use indexmap::IndexMap;
use indexmap::indexmap;
-use shirabe_pcre::Preg;
use shirabe_php_shim::{
- PhpMixed, array_search, in_array_strict, is_array, is_string, microtime, str_repeat,
- strip_tags, strlen,
+ PhpMixed, array_search, in_array_strict, is_array, is_string, microtime, preg_replace,
+ str_repeat, strip_tags, strlen,
};
use shirabe_symfony_console::helper::ProgressBar;
use shirabe_symfony_console::helper::QuestionHelper;
@@ -237,7 +236,7 @@ impl ConsoleIO {
};
let messages = Self::ensure_valid_utf8(messages);
- Preg::replace(&pattern, replacement, &messages)
+ preg_replace(&pattern, replacement, &messages)
}
/// Ensures a string is valid UTF-8, replacing invalid byte sequences with '?'