37,391
עריכות
חלוקת קונטרסים (שיחה | תרומות) (התאמה לחב"דפדיה - הערות שוליים) |
חלוקת קונטרסים (שיחה | תרומות) אין תקציר עריכה |
||
שורה 915: | שורה 915: | ||
} else { | } else { | ||
//is in infobox heuristic: = before image tag | //is in infobox heuristic: = before image tag | ||
var isInInfobox = new RegExp('=\s*\\[\\[(?:file|image|קובץ|תמונה):' + imgName.replace(' ', '[ | var isInInfobox = new RegExp('=\s*\\[\\[(?:file|image|קובץ|תמונה):' + imgName.replace(' ', '[ +]') + '[^\\]]*?\]\]', 'i'); | ||
if (isInInfobox.test(t.val())) { | if (isInInfobox.test(t.val())) { | ||
t.val(t.val().replace(matches[0], matches[0] + '{{'+mw.msg('checkty-fairuse-img-replace-template')+'}}')); | t.val(t.val().replace(matches[0], matches[0] + '{{'+mw.msg('checkty-fairuse-img-replace-template')+'}}')); |