small fix to routes with string

This commit is contained in:
slawkens 2023-02-15 17:32:48 +01:00
parent d17c547bca
commit 61285b6b8c
2 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ $dispatcher = FastRoute\cachedDispatcher(function (FastRoute\RouteCollector $r)
$aliases = [
[':int', ':string', ':alphanum'],
[':\d+', ':[A-Za-z0-9-_%+\']+}', ':[A-Za-z0-9]+'],
[':\d+', ':[A-Za-z0-9-_%+\']+', ':[A-Za-z0-9]+'],
];
// apply aliases

View File

@ -30,7 +30,7 @@ return [
['GET', 'account/confirm_email/{hash:[A-Za-z0-9-_]+}[/]', 'account/confirm_email.php'],
['GET', 'bans/{page:\d+}[/]', 'bans.php'],
[['GET', 'POST'], 'characters[/{name:string]', 'characters.php'],
[['GET', 'POST'], 'characters[/{name:string}]', 'characters.php'],
['GET', 'changelog[/{page:int}]', 'changelog.php'],
['GET', 'creatures[/{name:string}]', 'creatures.php'],