mirror of
https://github.com/getformwork/formwork.git
synced 2025-02-22 16:56:50 +01:00
Fix unintended no-break space
This commit is contained in:
parent
894f1b16d5
commit
d27e3296b6
@ -258,7 +258,7 @@ class Router
|
||||
return sprintf($optional !== null ? '(?:%s(%s))?' : '%s(%s)', preg_quote($separator), $pattern);
|
||||
}, $path, -1, $count, PREG_UNMATCHED_AS_NULL);
|
||||
|
||||
// Wrap the regex in tilde delimiters, so we don't need to escape slashes
|
||||
// Wrap the regex in tilde delimiters, so we don't need to escape slashes
|
||||
$regex = '~^' . trim($regex, '^$') . '$~';
|
||||
|
||||
return new CompiledRoute($path, $regex, $params);
|
||||
|
Loading…
x
Reference in New Issue
Block a user