This commit is contained in:
PJ Dietz 2015-02-20 07:45:48 -05:00
parent 3d68a0af86
commit 56cf56c6c5
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ class TemplateRoute extends RegexRoute
// Replace * with .* AFTER escaping to avoid escaping .* // Replace * with .* AFTER escaping to avoid escaping .*
$pattern = str_replace("*", ".*", $pattern); $pattern = str_replace("*", ".*", $pattern);
// Surroung the pattern with delimiters // Surround the pattern with delimiters.
$pattern = "~^{$pattern}$~"; $pattern = "~^{$pattern}$~";
// Replace all template variables with matching subpatterns. // Replace all template variables with matching subpatterns.