From 22b0f8c1c175a0f26a161d1f38c39ee4b741122c Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Wed, 26 Jun 2024 16:34:12 +0200 Subject: [PATCH] Setup/Update * setup step names are allowed to have dashes and underscores --- setup/tools/clisetup/update.us.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/tools/clisetup/update.us.php b/setup/tools/clisetup/update.us.php index 45e9cf73..b75e387c 100644 --- a/setup/tools/clisetup/update.us.php +++ b/setup/tools/clisetup/update.us.php @@ -89,8 +89,8 @@ CLISetup::registerUtility(new class extends UtilityScript // fetch sql/build after applying updates, as they may contain sync-prompts [$sql, $build] = DB::Aowow()->selectRow('SELECT `sql` AS "0", `build` AS "1" FROM ?_dbversion'); - $sql = trim($sql) ? array_unique(explode(' ', trim(preg_replace('/[^a-z]+/i', ' ', $sql)))) : []; - $build = trim($build) ? array_unique(explode(' ', trim(preg_replace('/[^a-z]+/i', ' ', $build)))) : []; + $sql = trim($sql) ? array_unique(explode(' ', trim(preg_replace('/[^a-z_\-]+/i', ' ', $sql)))) : []; + $build = trim($build) ? array_unique(explode(' ', trim(preg_replace('/[^a-z_\-]+/i', ' ', $build)))) : []; sleep(1);