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:
@@ -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";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user