From e1e3f0ca06a60b158cd61c784c7d80fc72112829 Mon Sep 17 00:00:00 2001 From: Josh Embling Date: Sat, 10 Feb 2024 11:24:57 +0000 Subject: [PATCH] rm excess whitespace on question prompt --- src/Helpers/Questions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Helpers/Questions.php b/src/Helpers/Questions.php index 690f3d1..bddec38 100644 --- a/src/Helpers/Questions.php +++ b/src/Helpers/Questions.php @@ -15,9 +15,9 @@ public function userQuestion(string $user_question): void $ai = Str::endsWith($question, '--ai'); if ($ai) { - $formattedQuestion = Str::remove('--ai', $question); + $formattedQuestion = trim(Str::remove('--ai', $question)); } else { - $formattedQuestion = $question; + $formattedQuestion = trim($question); } if (config('laragenie.database.fetch') || config('laragenie.database.save')) {