From 2a55c5933c31908235a19e4fbb9ec173cd84d53b Mon Sep 17 00:00:00 2001 From: Ilya Bakhlin Date: Sat, 8 Jan 2022 23:52:26 +0100 Subject: [PATCH] Fixing the router. --- chandler/MVC/Routing/Router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chandler/MVC/Routing/Router.php b/chandler/MVC/Routing/Router.php index 67718f3..710a610 100644 --- a/chandler/MVC/Routing/Router.php +++ b/chandler/MVC/Routing/Router.php @@ -231,7 +231,7 @@ class Router extends Singleton */ public function split(string $route): array // IMPROVE: Make this method private. { - if (($split = preg_split("/@/", $route)) === false) { + if (($split = preg_split("/->/", $route)) === false) { throw new Exception(); // TODO: Add an exception message. } else { return $split;