Skip to content

Commit

Permalink
Fixed missing space
Browse files Browse the repository at this point in the history
  • Loading branch information
hryvinskyi authored Dec 7, 2021
1 parent 8560b05 commit 75121e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Model/Minify/MinifyJs.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ public function execute(array $scripts): array
$script = preg_replace("/[^:']\/\/.*/", '', $script);
}

$script = str_replace('src=', ' src=', $script);
$script = str_replace('type=', ' type=', $script);
$script = preg_replace('!\s+!', ' ', $script);
}

return $scripts;
}
}
}

0 comments on commit 75121e3

Please sign in to comment.