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

This commit is contained in:
Dave Mc Nicoll committed 2026-02-25 19:43:36 +00:00
1 parent b16b4803c5
commit dac7acde87
2 files changed
+3 -2

No files matched your search

+2 -1
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'));