Skip to content

Commit 8e2cb5b

Browse files
[DI] allow "." and "-" in env processor lines
1 parent 98201ec commit 8e2cb5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DependencyInjection/FrameworkExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1360,7 +1360,7 @@ private function registerSecretsConfiguration(array $config, ContainerBuilder $c
13601360
}
13611361

13621362
if ($config['decryption_env_var']) {
1363-
if (!preg_match('/^(?:\w*+:)*+\w++$/', $config['decryption_env_var'])) {
1363+
if (!preg_match('/^(?:[-.\w]*+:)*+\w++$/', $config['decryption_env_var'])) {
13641364
throw new InvalidArgumentException(sprintf('Invalid value "%s" set as "decryption_env_var": only "word" characters are allowed.', $config['decryption_env_var']));
13651365
}
13661366

0 commit comments

Comments
 (0)