User:Ohconfucius/script/Sources.js: Difference between revisions

Content deleted Content added
tweaked to insert title per pipe trick; per User:GoingBatty
whitelisting per User:GoingBatty
Line 544:
regex(/(\{\{(?:harv\w*|sfn\w*|cite ?book|listen)\s?\|)([^\}]+)(\})/gi, protect_function);
regex(/(\|\s*(?:contribution|quote|title)\s*=)([^|}]+)(\|\})/gi, protect_function);
 
//whitelisting -against changes made by generic regex in Ohc_sourcepub (e.g. Fast Company)
regex(/(\|\s*(?:journal|newspaper|periodical|website|work)\s*=\s*Fast )(Company\s*)([\|\}])/gi, protect_function);
 
}