Skip to content

Commit 64079d9

Browse files
committed
simplify regex
1 parent 541889d commit 64079d9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/SPC/builder/unix/UnixBuilderBase.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,8 +399,7 @@ protected function buildFrankenphp(): void
399399
$xcaddyModules = getenv('SPC_CMD_VAR_FRANKENPHP_XCADDY_MODULES');
400400
$frankenphpSourceDir = SOURCE_PATH . '/frankenphp';
401401

402-
$xcaddyModules = preg_replace('#--with github.com/dunglas/frankenphp(=\S+)?#', '', $xcaddyModules);
403-
$xcaddyModules = preg_replace('#--with github.com/dunglas/frankenphp/caddy(=\S+)?#', '', $xcaddyModules);
402+
$xcaddyModules = preg_replace('#--with github.com/dunglas/frankenphp\S*#', '', $xcaddyModules);
404403
$xcaddyModules = "--with github.com/dunglas/frankenphp={$frankenphpSourceDir} " .
405404
"--with github.com/dunglas/frankenphp/caddy={$frankenphpSourceDir}/caddy {$xcaddyModules}";
406405
if ($this->getLib('brotli') === null && str_contains($xcaddyModules, '--with github.com/dunglas/caddy-cbrotli')) {

0 commit comments

Comments
 (0)