Fix regex match when regex included meta characters

Signed-off-by: mark_story <mark@mark-story.com>
This commit is contained in:
SKAhack 2010-08-30 16:55:46 +09:00 committed by mark_story
parent 4496a0a0bb
commit 23f1c8e1c7

View file

@ -393,7 +393,7 @@ class Set {
$contexts = array($data);
}
}
$tokens = array_slice(preg_split('/(?<!=)\/(?![a-z-\s]*\])/', $path), 1);
$tokens = array_slice(preg_split('/(?<!=|\\\\)\/(?![a-z-\s]*\])/', $path), 1);
do {
$token = array_shift($tokens);