Skip to content
This repository has been archived by the owner on Dec 20, 2021. It is now read-only.

Commit

Permalink
Merge pull request #12 from ajabot/fix-alphanumeric-route
Browse files Browse the repository at this point in the history
fix(router): fix dispatch to alphanumeric controller
  • Loading branch information
RETFU committed May 24, 2017
2 parents 66f817d + 61d18e3 commit 78c8e34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RREST.php
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ protected function getRouteControllerClassName($routePath)
$controllerClassName = preg_replace('/\{[^}]+\}/', '', $routePath);
$controllerClassName = trim(str_replace('//', '/', $controllerClassName));
$controllerClassName = trim($controllerClassName, '/');
$controllerClassName = preg_replace('/[^a-z\/]/', '', $controllerClassName);
$controllerClassName = preg_replace('/[^a-zA-Z\d\/]/', '', $controllerClassName);

$chunks = explode('/', $controllerClassName);
$controllerClassName = ucwords($controllerClassName);
Expand Down

0 comments on commit 78c8e34

Please sign in to comment.