1
0
mirror of https://github.com/dannyvankooten/AltoRouter.git synced 2025-10-22 19:56:20 +02:00

escape dash to fix tests

This commit is contained in:
Koen Punt
2014-05-10 14:56:15 +02:00
parent aa0706284d
commit 99f75c28e6
2 changed files with 3 additions and 2 deletions

View File

@@ -351,7 +351,7 @@ class AltoRouterTest extends PHPUnit_Framework_TestCase
$pattern .= '\x{FE70}-\x{FEFF}';
$pattern .= '\x{0750}-\x{077F}';
// Alphanumeric, /, _, - and space characters
$pattern .= 'a-zA-Z0-9\/_-\s';
$pattern .= 'a-zA-Z0-9\/_\-\s';
// 'ZERO WIDTH NON-JOINER'
$pattern .= '\x{200C}';
$pattern .= ']+)';