Liangent has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/65010


Change subject: Comment matching should be non-greedy.
......................................................................

Comment matching should be non-greedy.

Change-Id: I1b92e4d84d11ff7493a2ec684815d19f0937caa7
---
M Gadgets_body.php
1 file changed, 7 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Gadgets 
refs/changes/10/65010/1

diff --git a/Gadgets_body.php b/Gadgets_body.php
index 330a154..1e89a32 100644
--- a/Gadgets_body.php
+++ b/Gadgets_body.php
@@ -65,6 +65,12 @@
                if ( !$gadgets ) {
                        return true;
                }
+               $preferences['upwiz-max-simultaneous-upload'] = array(
+                               'type' => 'select',
+                                       'label-message' => 'mwe-upwiz-sim',
+                                               'section' => 
'uploads/upwiz-experimental',
+                                                       'options' => array( 1, 
2 ,3 ,4, 5, 6 )
+                                               );
 
                $options = array();
                $default = array();
@@ -587,7 +593,7 @@
                        $g = $forceNewText;
                }
 
-               $g = preg_replace( '/<!--.*-->/s', '', $g );
+               $g = preg_replace( '/<!--.*?-->/s', '', $g );
                $g = preg_split( '/(\r\n|\r|\n)+/', $g );
 
                $gadgets = array();

-- 
To view, visit https://gerrit.wikimedia.org/r/65010
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1b92e4d84d11ff7493a2ec684815d19f0937caa7
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Gadgets
Gerrit-Branch: master
Gerrit-Owner: Liangent <liang...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to