| @@ 3584-3587 (lines=4) @@ | ||
| 3581 | $skip = 0; |
|
| 3582 | $newlines = 0; |
|
| 3583 | switch ($min[0]) { |
|
| 3584 | case 'url(': |
|
| 3585 | if (preg_match('/url\(.*?\)/', $text, $m, 0, $count)) |
|
| 3586 | $count += strlen($m[0]) - strlen($min[0]); |
|
| 3587 | break; |
|
| 3588 | case '"': |
|
| 3589 | case "'": |
|
| 3590 | if (preg_match('/'.$min[0].'.*?(?<!\\\\)'.$min[0].'/', $text, $m, 0, $count)) |
|
| @@ 3598-3603 (lines=6) @@ | ||
| 3595 | if ($skip === false) $skip = strlen($text) - $count; |
|
| 3596 | else $skip -= $count; |
|
| 3597 | break; |
|
| 3598 | case '/*': |
|
| 3599 | if (preg_match('/\/\*.*?\*\//s', $text, $m, 0, $count)) { |
|
| 3600 | $skip = strlen($m[0]); |
|
| 3601 | $newlines = substr_count($m[0], "\n"); |
|
| 3602 | } |
|
| 3603 | break; |
|
| 3604 | } |
|
| 3605 | ||
| 3606 | if ($skip == 0) $count += strlen($min[0]); |
|