From 5b7da3237f8498f719c4a8816930c6860699bc17 Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Tue, 4 Feb 2025 08:46:50 -0500 Subject: [PATCH] - Added email pattern matcher --- meta/definitions/routes.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/definitions/routes.php b/meta/definitions/routes.php index a43ac68..a2460b9 100644 --- a/meta/definitions/routes.php +++ b/meta/definitions/routes.php @@ -68,6 +68,8 @@ return [ } } + $router->addPatternMatcher('email', '[^@ \t\r\n]+@[^@ \t\r\n]+\.[^@ \t\r\n]+'); + $routing = $container->get(Lean\Routing::class); $routing->registerRoute($container, getenv('URL_BASE'));