User:Ohconfucius/test/Sources subscript1.js: Difference between revisions

Content deleted Content added
include quote marks
Undid revision 520994886 by Ohconfucius (talk)
Line 213:
'Oxford ?Poetry(?:\\.co\\.uk)': 'Oxford Poetry',
'Pitchfork(?:\\.com|)': 'Pitchfork Media',
'Playboy(?:\\.com|\\.co\\.uk)': 'Playboy',
'Pshares(?:\\.org|)': 'Ploughshares',
'Poetry ?magazine(?:\\.org|)': 'Poetry',
Line 357 ⟶ 356:
'blesk(?:\\.cz|)': 'Blesk',
'ihned(?:\\.cz|)': 'Hospodářské noviny',
'idneslidovky(?:\\.cz|)': 'MladáLidové fronta DNESnoviny',
'idnes(?:\\.cz|)': 'Mladá fronta DNES',
'idnes(?:\\.cz|)': 'Mladá fronta DNES',
'izvestia(?:\\.ru|)': 'Izvestia',
'gazeta-pravda(?:\\.ru|)': 'Pravda',
'pravo.novinky(?:\\.cz|)': 'Právo',
'haaretz\\.co(?:\\.il|m)': 'Haaretz',
Line 401 ⟶ 398:
regex(re, newWord);
// source names to italicised 'wikiname' - unlinked; outside citation templates
var re = new RegExp('(<ref[^>]*>[^<]+?[\\]\\.,;"']\\s+)' + word + '(?: online|)([^\\]<]*?<\\/ref>)', 'gi');
regex(re, newWord2); //NOTE: adaptation to italicise is built into 'newWord2'
// source names to italicised 'wikiname' - linked, unpiped; outside citation templates
var re = new RegExp('(<ref[^>]*>[^<]+?[\\]\\.,;"']\\s+)\\[\\[' + word + '(?: online|)\\]\\]([^<]*?<\\/ref>)', 'gi');
regex(re, newWord3); //NOTE: adaptation to re-italicise linked sources is built into 'newWord3'
}