מדיה ויקי:Gadget-Checkty.js: הבדלים בין גרסאות בדף

אין תקציר עריכה
אין תקציר עריכה
אין תקציר עריכה
שורה 891: שורה 891:
$.each(fairUseImgs, function (i, fiImg) {
$.each(fairUseImgs, function (i, fiImg) {
var imgName = mw.util.escapeRegExp(/.:(.+)$/.exec(fiImg)[1]),
var imgName = mw.util.escapeRegExp(/.:(.+)$/.exec(fiImg)[1]),
imgDescRE =  new RegExp(imgName.replace(' ', '[ _]') + '((?:[^\\[\\]]|\\[\\[[^\\[\\]]*?\\]\\])*?)\]\]', 'i'),
imgDescRE =  new RegExp(imgName.replace(' ', '[ +]') + '((?:[^\\[\\]]|\\[\\[[^\\[\\]]*?\\]\\])*?)\]\]', 'i'),
matches;
matches;
if (!(matches = imgDescRE.exec(t.val()))) {
if (!(matches = imgDescRE.exec(t.val()))) {