Added unicode parameter regex support.

This commit is contained in:
Simon Sessingø
2017-08-23 22:49:35 +01:00
parent b3e99a2283
commit 9f509ac818
3 changed files with 4 additions and 4 deletions
@@ -74,7 +74,7 @@ abstract class LoadableRoute extends Route implements ILoadableRoute
$regex = sprintf(static::PARAMETERS_REGEX_FORMAT, $this->paramModifiers[0], $this->paramOptionalSymbol, $this->paramModifiers[1]);
if (preg_match_all('/' . $regex . '/', $this->url, $matches)) {
if (preg_match_all('/' . $regex . '/u', $this->url, $matches)) {
$this->parameters = array_fill_keys($matches[1], null);
}
}