mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Gadgets
synced 2024-11-15 03:23:51 +00:00
Gadget-definitions: Make comment matching non-greedy
Change-Id: I1b92e4d84d11ff7493a2ec684815d19f0937caa7
This commit is contained in:
parent
e2dcb8f62d
commit
867ccb19b4
|
@ -595,7 +595,7 @@ class Gadget {
|
|||
$g = $forceNewText;
|
||||
}
|
||||
|
||||
$g = preg_replace( '/<!--.*-->/s', '', $g );
|
||||
$g = preg_replace( '/<!--.*?-->/s', '', $g );
|
||||
$g = preg_split( '/(\r\n|\r|\n)+/', $g );
|
||||
|
||||
$gadgets = array();
|
||||
|
|
Loading…
Reference in a new issue