37,391
עריכות
חלוקת קונטרסים (שיחה | תרומות) (עדכון מויקיפדיה: https://he.wikipedia.org/wiki/%D7%9E%D7%93%D7%99%D7%94_%D7%95%D7%99%D7%A7%D7%99:Gadget-Checkty.js) |
חלוקת קונטרסים (שיחה | תרומות) (עדכון: https://he.wikipedia.org/wiki/%D7%9E%D7%93%D7%99%D7%94_%D7%95%D7%99%D7%A7%D7%99:Gadget-Checkty.js) |
||
שורה 1,086: | שורה 1,086: | ||
mergeRefsWithoutName: function() { // merge refs with same content | mergeRefsWithoutName: function() { // merge refs with same content | ||
var references = {},// a dictionary where key is the ref content and the value is list of uses | var references = {},// a dictionary where key is the ref content and the value is list of uses | ||
refTemplateRE = /\{\{הערה\|(?! *שם *=)(?:1=)?((?:[^\{\}]|\{\{.*?\}\})+)(?!\|=שם=)\}\}/g, | |||
refTagRE = /<ref>(.+?)<\/ref>/g, | |||
wikitext = this.textbox.value, m; | wikitext = this.textbox.value, m; | ||
while ( m = | while ( m = refTemplateRE.exec( wikitext ) ){ | ||
references[m[1]] = references[m[1]] || []; | |||
references[m[1]].push(m[0]); | |||
} | |||
while ( m = refTagRE.exec( wikitext ) ){ | |||
references[m[1]] = references[m[1]] || []; | references[m[1]] = references[m[1]] || []; | ||
references[m[1]].push(m[0]); | references[m[1]].push(m[0]); |