From 14961350d08ee20b1aaf96965dab62342075c092 Mon Sep 17 00:00:00 2001 From: Alex Whitman Date: Thu, 26 Apr 2012 16:32:02 +0100 Subject: [PATCH] Automatically wrap numeric routes in parentheses --- laravel/routing/router.php | 1 + 1 file changed, 1 insertion(+) diff --git a/laravel/routing/router.php b/laravel/routing/router.php index a6577b3f..76516504 100644 --- a/laravel/routing/router.php +++ b/laravel/routing/router.php @@ -174,6 +174,7 @@ public static function group($attributes, Closure $callback) */ public static function register($method, $route, $action) { + if (ctype_digit($route)) $route = "({$route})"; if (is_string($route)) $route = explode(', ', $route); // If the developer is registering multiple request methods to handle