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

Content deleted Content added
efn template also needs protecting from linkspam deletions
bug fix
Line 641:
regex(/(== ?(?:Bibliography|Further reading|References|Sources|Works) ?==+)(\n[\S\s]*?)(\n)(?===)/gi, protect_function);
regex(/(== ?(?:Attribution|External links) ?==+)(\n[\S\s]*?)(\[\[Category:[^\]]+\]\])/gi, protect_function);
regex(/({{(?:r?efn|sfnp|wikicite) ?\|)([^}]*?)(}})/gi, protect_function);
regex(/(<ref name="[^\"]*?" ?>)([\s\S]*?)(<\/ref>)/gi, protect_function);
regex(/(<ref[^/>]*?>)([\s\S]*?)(<\/ref>)/gi, protect_function);