מדיה ויקי:Gadget-TemplateParamWizard.js: הבדלים בין גרסאות בדף
trim |
בג? |
||
| שורה 30: | שורה 30: | ||
var specials = []; | var specials = []; | ||
while (true) { //extract inner links, inner templates and inner params - we don't want to sptit those. | while (true) { //extract inner links, inner templates and inner params - we don't want to sptit those. | ||
var match = selection.match(/(\{\{[^{}\]\[]*\}\}|\[\[[^{}\]\[]*\]\]|\[[^{}\]\[]*\] | var match = selection.match(/(\{\{[^\{\}\]\[]*\}\}|\[\[[^\{\}\]\[]*\]\]|\[[^\{\}\]\[]*\])/); | ||
if (! match || ! match.length) | if (! match || ! match.length) | ||
break; | break; | ||