mirror of
https://github.com/getformwork/formwork.git
synced 2025-02-23 01:02:46 +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);
|
return sprintf($optional !== null ? '(?:%s(%s))?' : '%s(%s)', preg_quote($separator), $pattern);
|
||||||
}, $path, -1, $count, PREG_UNMATCHED_AS_NULL);
|
}, $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, '^$') . '$~';
|
$regex = '~^' . trim($regex, '^$') . '$~';
|
||||||
|
|
||||||
return new CompiledRoute($path, $regex, $params);
|
return new CompiledRoute($path, $regex, $params);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user