Fix incorrect regex modifier, causing JS to become malformed is some cases

This commit is contained in:
Toby Zerner 2018-11-14 06:45:14 +10:30
parent 2762da9384
commit 0f05ecbbc6

View File

@ -67,7 +67,7 @@ class JsCompiler extends RevisionCompiler
*/ */
protected function format(string $string): string protected function format(string $string): string
{ {
return preg_replace('~//# sourceMappingURL.*$~s', '', $string).";\n"; return preg_replace('~//# sourceMappingURL.*$~m', '', $string).";\n";
} }
/** /**