diff --git a/system/CLI/CLI.php b/system/CLI/CLI.php index 3fc5f32304f7..7a095b937fe6 100644 --- a/system/CLI/CLI.php +++ b/system/CLI/CLI.php @@ -258,7 +258,7 @@ public static function prompt(string $field, $options = null, $validation = null $input = trim(static::input()) ?: $default; if ($validation) { - while (! static::validate(trim($field), $input, $validation)) { + while (! static::validate('"' . trim($field) . '"', $input, $validation)) { $input = static::prompt($field, $options, $validation); } }