Content deleted Content added
Lightmouse (talk | contribs) No edit summary |
Lightmouse (talk | contribs) No edit summary |
||
Line 703:
//year: temporary change to protect accessyear etc. Undone below at #1
txt.value=txt.value.replace(/([ehry]\s?=\s?)(\[\[\d{1,4}\]\])/gi, '$1qq$2');
txt.value=txt.value.replace(/(\[\[\d{1,4}\]\])([}])/gi, 'qq$1$2');
txt.value=txt.value.replace(/(\[\[\d{1,4}\]\])(\s[}])/gi, 'qq$1$2');
txt.value=txt.value.replace(/([ehry]\s?=\s?)(\[\[\d\d?\s(?:January|February|March|April|May|June|July|August|September|October|November|December)\]\])/gi,'$1qq$2');
txt.value=txt.value.replace(/([ehry]\s?=\s?)(\[\[\d\d?\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\]\])/g,'$1qq$2');
Line 724 ⟶ 728:
//year: now remove unprotected linked years
txt.value=txt.value.replace(/([^q])\[\[(\d{1,4})\]\]
txt.value=txt.value.replace(/([^q])\[\[(\d{1,4})\]\]
▲txt.value=txt.value.replace(/([^q])\[\[(\d{1,4})\]\]([^\}])/gi, '$1$2$3');
▲txt.value=txt.value.replace(/([^q])\[\[(\d{1,4})\]\](\s[^\}])/gi, '$1$2$3');
//year: #1. Undo temporary change to protect accessyear etc
txt.value=txt.value.replace(/(=\s?)qq(\[\[)/gi, '$1$2');
|