Skip to content

Commit 3f19fdf

Browse files
committed
added support for dash based urls
1 parent 5562334 commit 3f19fdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Run.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
$controller = function($Request) {
1313
$find = function($page, &$controller, &$posiblePage) {
14-
$pageClass = explode('/',$page);
14+
$pageClass = explode('/',preg_replace('/\-|_/','',$page));
1515
\Tipsy\MVC\Find::find($pageClass, $controller, $posiblePage);
1616
};
1717

0 commit comments

Comments
 (0)