|
@@ 468-474 (lines=7) @@
|
| 465 |
|
$quoted = str_replace('/'.Symbol::STAR.Symbol::STAR.'/', '/(.+/)?', $quoted); |
| 466 |
|
|
| 467 |
|
// Replace "*" by "[^/]*", as long as preceded by an even number of backslashes |
| 468 |
|
if (false !== strpos($quoted, Symbol::STAR)) { |
| 469 |
|
$quoted = preg_replace( |
| 470 |
|
'~'.$noEscaping.Symbol::E_STAR.'~', |
| 471 |
|
'$1[^/]*', |
| 472 |
|
$quoted |
| 473 |
|
); |
| 474 |
|
} |
| 475 |
|
|
| 476 |
|
// Replace "?" by ".", as long as preceded by an even number of backslashes |
| 477 |
|
if (false !== strpos($quoted, Symbol::QUESTION_MARK)) { |
|
@@ 477-483 (lines=7) @@
|
| 474 |
|
} |
| 475 |
|
|
| 476 |
|
// Replace "?" by ".", as long as preceded by an even number of backslashes |
| 477 |
|
if (false !== strpos($quoted, Symbol::QUESTION_MARK)) { |
| 478 |
|
$quoted = preg_replace( |
| 479 |
|
'~'.$noEscaping.Symbol::E_QUESTION_MARK.'~', |
| 480 |
|
'$1.', |
| 481 |
|
$quoted |
| 482 |
|
); |
| 483 |
|
} |
| 484 |
|
|
| 485 |
|
return str_replace( |
| 486 |
|
// Replace "\*" by "*" |