Commit 1218d60d authored by Luke081515's avatar Luke081515

ask: Add a space to every question automatically

* Ensure that if you enter your answer you have a space between the question and your answer.
* Fixes #96
parent 63bb38f6
Pipeline #1836 passed with stages
in 2 minutes and 43 seconds
......@@ -1778,12 +1778,12 @@ class Core extends Password {
public function ask($msg, $type = "none") {
switch($type) {
case 'required':
return $this->askQuestion("\n\033[01;33m" . $msg . "\033[0m");
return $this->askQuestion("\n\033[01;33m" . $msg . "\033[0m ");
case 'optional':
return $this->askQuestion("\n\033[01;36m" . $msg . "\033[0m");
return $this->askQuestion("\n\033[01;36m" . $msg . "\033[0m ");
case 'none':
default:
return $this->askQuestion("\n" . $msg);
return $this->askQuestion("\n" . $msg . " ");
}
}
}
......
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