User:Lwarrenwiki/formatgeneral.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 296:
// regex(/(\w+\]?\.?)[”»](\W)/gi, '$1\"$2');
 
regex(/(.)(.)/gi, '$1\"$2'); // straight quotes
regex(/”/gi, '"'); // straight quotes
regex(/(.)[“„”«»](.)/gi, '$1\"$2'); // straight quotes
regex(/(.)”(.)/gi, '$1\"$2'); // straight quotes
regex(/(.)[“”](.)/gi, '$1\"$2');
regex(/(.)[“„”«»](.)/gi, '$1\"$2');
 
regex(/(.)‘(.)/gi, '$1\'$2'); // straight apostrophe (won't touch prime symbol here)
regex(/(.)’(.)/gi, '$1\'$2'); // straight apostrophe (won't touch prime symbol here)
regex(/(.)[‘`´’](.)/gi, '$1\'$2'); // straight apostrophe (won't touch prime symbol here)
regex(/(.)[“„”«»](.)/gi, '$1\"$2');
 
// Lwarrenwiki restored two lines here that had been commented out by OhConfucius:
regex(/([\s>()])[‘`´’′](\[?\w+)/gi, '$1\'$2');