1
0
mirror of https://github.com/flarum/core.git synced 2025-07-19 15:51:16 +02:00

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 68c6638fb5
commit 3c8262ccde

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";
} }
/** /**