diff --git a/src/Frontend/Compiler/JsCompiler.php b/src/Frontend/Compiler/JsCompiler.php index 9bf5719e6..b86a42044 100644 --- a/src/Frontend/Compiler/JsCompiler.php +++ b/src/Frontend/Compiler/JsCompiler.php @@ -67,7 +67,7 @@ class JsCompiler extends RevisionCompiler */ protected function format(string $string): string { - return preg_replace('~//# sourceMappingURL.*$~s', '', $string).";\n"; + return preg_replace('~//# sourceMappingURL.*$~m', '', $string).";\n"; } /**