@@ 3613-3616 (lines=4) @@ | ||
3610 | $skip = 0; |
|
3611 | $newlines = 0; |
|
3612 | switch ($min[0]) { |
|
3613 | case 'url(': |
|
3614 | if (preg_match('/url\(.*?\)/', $text, $m, 0, $count)) |
|
3615 | $count += strlen($m[0]) - strlen($min[0]); |
|
3616 | break; |
|
3617 | case '"': |
|
3618 | case "'": |
|
3619 | if (preg_match('/'.$min[0].'.*?(?<!\\\\)'.$min[0].'/', $text, $m, 0, $count)) |
|
@@ 3627-3632 (lines=6) @@ | ||
3624 | if ($skip === false) $skip = strlen($text) - $count; |
|
3625 | else $skip -= $count; |
|
3626 | break; |
|
3627 | case '/*': |
|
3628 | if (preg_match('/\/\*.*?\*\//s', $text, $m, 0, $count)) { |
|
3629 | $skip = strlen($m[0]); |
|
3630 | $newlines = substr_count($m[0], "\n"); |
|
3631 | } |
|
3632 | break; |
|
3633 | } |
|
3634 | ||
3635 | if ($skip == 0) $count += strlen($min[0]); |