diff --git a/app/Livewire/CreateEditBot.php b/app/Livewire/CreateEditBot.php index 0a4a298..0b45ee2 100644 --- a/app/Livewire/CreateEditBot.php +++ b/app/Livewire/CreateEditBot.php @@ -109,6 +109,8 @@ class CreateEditBot extends Component public function save(): void { + $this->schedule = trim(preg_replace('/\s{2,}/', ' ', $this->schedule)); + $this->updatedSchedule($this->schedule); $this->validate(); if (!class_exists($this->class)) { diff --git a/resources/views/livewire/create-edit-bot.blade.php b/resources/views/livewire/create-edit-bot.blade.php index 7950bd7..df64299 100644 --- a/resources/views/livewire/create-edit-bot.blade.php +++ b/resources/views/livewire/create-edit-bot.blade.php @@ -52,6 +52,7 @@ @if ($meta['type'] === 'json')