mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
Added character '-'
This commit is contained in:
parent
2701a51606
commit
85d43c57bd
|
|
@ -109,7 +109,7 @@ class UriFactory
|
|||
*/
|
||||
public static function build(string $uri, array $toMatch = [])
|
||||
{
|
||||
return preg_replace_callback('(\{[\/#\?@\.\$][a-zA-Z0-9]*\})', function ($match) use ($toMatch) {
|
||||
return preg_replace_callback('(\{[\/#\?@\.\$][a-zA-Z0-9\-]*\})', function ($match) use ($toMatch) {
|
||||
$match = substr($match[0], 1, strlen($match[0]) - 2);
|
||||
|
||||
return $toMatch[$match] ?? self::$uri[$match] ?? $match;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user