From cab33c16c2eba3deea917c246fb73f98b7f2ea1b Mon Sep 17 00:00:00 2001 From: Oskar-Mikael Date: Thu, 27 Nov 2025 22:04:39 +0100 Subject: [PATCH] Fix cron validation --- app/Livewire/CreateEditBot.php | 2 ++ resources/views/livewire/create-edit-bot.blade.php | 2 ++ 2 files changed, 4 insertions(+) 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')