@@ -18,8 +18,8 @@ |
||
18 | 18 | * @var array Characters to escape outside of a character class |
19 | 19 | */ |
20 | 20 | public $inLiteral = [ |
21 | - '$' => '\\$', '(' => '\\(', ')' => '\\)', '*' => '\\*', |
|
22 | - '+' => '\\+', '.' => '\\.', '?' => '\\?', '[' => '\\]', |
|
21 | + '$' => '\\$', '(' => '\\(', ')' => '\\)', '*' => '\\*', |
|
22 | + '+' => '\\+', '.' => '\\.', '?' => '\\?', '[' => '\\]', |
|
23 | 23 | '\\' => '\\\\', '^' => '\\^', '{' => '\\{', '|' => '\\|' |
24 | 24 | ]; |
25 | 25 |
@@ -17,7 +17,7 @@ |
||
17 | 17 | $newStrings = []; |
18 | 18 | foreach ($this->getStringsByPrefix($strings) as $prefix => $strings) |
19 | 19 | { |
20 | - $newStrings[] = (isset($strings[1])) ? $this->mergeStrings($strings) : $strings[0]; |
|
20 | + $newStrings[] = (isset($strings[1])) ? $this->mergeStrings($strings) : $strings[0]; |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | return $newStrings; |