- Fixed email route argument pattern and added getenvonce() method

This commit is contained in:
Dave Mc Nicoll 2026-02-25 19:16:08 +00:00
parent b16b4803c5
commit dac7acde87
2 changed files with 3 additions and 2 deletions

View File

@ -68,7 +68,8 @@ return [
}
}
$router->addPatternMatcher('email', '[^@ \t\r\n]+@[^@ \t\r\n]+\.[^@ \t\r\n]+');
$router->addPatternMatcher('email', '[^@ \t\r\n]+@[^@ \t\r\n]+\.[^@ \t\r\n/]+');
$router->addPatternMatcher('ids', '\b\d[\d,]*\b');
$routing = $container->get(Lean\Routing::class);
$routing->registerRoute($container, getenv('URL_BASE'));

View File

@ -10,7 +10,7 @@ return [
],
'keys' => (function() {
return explode(',', getenv('KEYS') ?? "") ;
return explode(',', getenvonce('KEYS') ?? "") ;
})(),
'meta' => [