Commit d32fda34 authored by Luke081515's avatar Luke081515

Allow to add spaces to both replacment strings

parent 84a6f4f5
Pipeline #1840 passed with stages
in 1 minute and 51 seconds
......@@ -37,7 +37,13 @@ class Corrector extends Core {
$this->pattern = $this->ask("What should be the pattern? ", "required");
}
$this->needle = $this->ask("What should be replaced? ", "required");
if ($this->ask("Add a space to the old string? [y/N] ", "required") === 'y') {
$this->needle = $this->needle . " ";
}
$this->replace = $this->ask("What should be the replacement? ", "required");
if ($this->ask("Add a string to the replacement? [y/N] ", "required") === 'y') {
$this->replace = $this->replace . " ";
}
if ($this->ask("Continue a previous search request? [y/N] ", "required") === 'y') {
$this->cont = $this->ask("What was the last title you've checked? ", "required");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment