Gadget-definitions: Make comment matching non-greedy

Change-Id: I1b92e4d84d11ff7493a2ec684815d19f0937caa7
This commit is contained in:
Liangent 2013-05-23 05:21:19 +00:00 committed by Krinkle
parent e2dcb8f62d
commit 867ccb19b4

View file

@ -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();