Skip to content

Commit

Permalink
rm excess whitespace on question prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
joshembling committed Feb 10, 2024
1 parent 5e6723b commit e1e3f0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Helpers/Questions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down

0 comments on commit e1e3f0c

Please sign in to comment.