Skip to content

Commit

Permalink
route regex bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mashape committed Feb 8, 2011
1 parent bcbbefa commit 38b4ca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mashape/configuration/helpers/loadMethods.php
Expand Up @@ -133,7 +133,7 @@ function loadMethodsFromXML($xmlParser) {
}

function validateRoute($route) {
if (preg_match("/^(\/\{\w+\})*\/\w+(\/\w+)*(\/\{\w+\})*(\/\w+)*(\/\{\w+\})*$/", $route)) {
if (preg_match("/^(\/((\w+)|(\{\w+\})))+$/", $route)) {
return true;
} else {
return false;
Expand Down

0 comments on commit 38b4ca8

Please sign in to comment.