@@ -21,7 +21,7 @@ |
||
21 | 21 | { |
22 | 22 | $regexpKey = '(?:\'(?:[^\']++|\\\\.)*\'|"(?:[^"]++|\\\\.)*"|[^,\'"\=]++|[\'"])*'; |
23 | 23 | $regexpValue = '\'(?:[^\']++|\\\\.)*\'|(?:"(?:[^"]++|\\\\.)*"|[^,\'"]+|[\'"])*'; |
24 | - $regexp = '/(?<=^|,)(?:(?<key>' . $regexpKey . ')\s*=\s*)?(?<value>' . $regexpValue. ')\s*/'; |
|
24 | + $regexp = '/(?<=^|,)(?:(?<key>' . $regexpKey . ')\s*=\s*)?(?<value>' . $regexpValue . ')\s*/'; |
|
25 | 25 | |
26 | 26 | preg_match_all($regexp, $value, $matches, PREG_PATTERN_ORDER); // regex can't fail |
27 | 27 |