mirror of
https://github.com/mrclay/minify.git
synced 2025-08-13 01:24:51 +02:00
Revert "simplify substr third param"
This reverts commit 5659799c42
.
the change actually broken MinifyImportProcessorTest
This commit is contained in:
@@ -135,7 +135,7 @@ class Minify_ImportProcessor
|
||||
// $m[1] is either quoted or not
|
||||
$quote = ($m[1][0] === "'" || $m[1][0] === '"') ? $m[1][0] : '';
|
||||
|
||||
$url = ($quote === '') ? $m[1] : substr($m[1], 1, -2);
|
||||
$url = ($quote === '') ? $m[1] : substr($m[1], 1, strlen($m[1]) - 2);
|
||||
|
||||
if ('/' !== $url[0]) {
|
||||
if (strpos($url, '//') > 0) {
|
||||
|
Reference in New Issue
Block a user