37,391
עריכות
חלוקת קונטרסים (שיחה | תרומות) אין תקציר עריכה |
חלוקת קונטרסים (שיחה | תרומות) אין תקציר עריכה |
||
שורה 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(' ', '[ | imgDescRE = new RegExp(imgName.replace(' ', '[ +]') + '((?:[^\\[\\]]|\\[\\[[^\\[\\]]*?\\]\\])*?)\]\]', 'i'), | ||
matches; | matches; | ||
if (!(matches = imgDescRE.exec(t.val()))) { | if (!(matches = imgDescRE.exec(t.val()))) { |