From 55b6ebfa01186a735dcf0648065b69579102c24f Mon Sep 17 00:00:00 2001 From: Colin Tickle Date: Wed, 19 Apr 2023 23:52:20 +0100 Subject: [PATCH] Fix domain to skip in ui php script --- src/docker-stack-ui.loc/pub/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docker-stack-ui.loc/pub/index.php b/src/docker-stack-ui.loc/pub/index.php index 72412de..0be952d 100644 --- a/src/docker-stack-ui.loc/pub/index.php +++ b/src/docker-stack-ui.loc/pub/index.php @@ -80,7 +80,7 @@ public static function supportedProjectsDataSource(): string $projectBaseDir = '..' . DIRECTORY_SEPARATOR . '..'; $projects = scandir($projectBaseDir); foreach ($projects as $project) { - if ('docker-stack-ui.localhost' == $project || + if ('docker-stack-ui.loc' == $project || !preg_match('/^.+\.(local|loc|localhost|test)$/', $project)) { continue; }