Skip to content
Browse files

route regex bug fix

  • Loading branch information...
1 parent bcbbefa commit 38b4ca84d5543d1d1d8317a9c5bd049636057860 Mashape committed Feb 8, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 mashape/configuration/helpers/loadMethods.php
View
2 mashape/configuration/helpers/loadMethods.php
@@ -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;

0 comments on commit 38b4ca8

Please sign in to comment.
Something went wrong with that request. Please try again.