Skip to content

Commit

Permalink
fix a bug in the parameter pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
mindplay-dk committed Aug 10, 2016
1 parent 0ca5ec0 commit 0ce044c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Router
/**
* @var string parameter pattern; matches tokens like `<foo>` or `<foo:bar>`
*/
const PARAM_PATTERN = '/(?<!\(\?)<([^\:]+)(?:$|\:([^>]+)|)>/';
const PARAM_PATTERN = "/(?<!\\(\\?)<([^\\:>]+)(?:$|\\:([^>]+)|)>/"; # (?<!\(\?)<([^\:>]+)(?:$|\:([^>]+)|)>

/**
* @var Route root Route (e.g. corresponding to "/")
Expand Down

0 comments on commit 0ce044c

Please sign in to comment.