Setup/Update

* underscores are valid chars for script names
This commit is contained in:
Sarjuuk
2024-05-15 00:08:45 +02:00
parent c87178c791
commit b2690aea08

View File

@@ -86,8 +86,8 @@ function update(?array &$sql = [], ?array &$build = []) : void
sleep(1);
$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)))) : [];
if ($sql)
CLI::write('The following table(s) require syncing: '.implode(', ', $sql));