Skip to content

Commit

Permalink
Revert "simplify substr third param"
Browse files Browse the repository at this point in the history
This reverts commit 5659799.

the change actually broken MinifyImportProcessorTest
  • Loading branch information
glensc committed Jan 5, 2018
1 parent b97a1db commit 258e495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Minify/ImportProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ private function _urlCB($m)
// $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) {
Expand Down

0 comments on commit 258e495

Please sign in to comment.