mirror of
https://github.com/flarum/framework.git
synced 2025-01-23 06:13:17 +08:00
Fix incorrect regex modifier, causing JS to become malformed is some cases
This commit is contained in:
parent
2762da9384
commit
0f05ecbbc6
|
@ -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";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user