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

Content deleted Content added
adjust for possibly incorrectly input title
add to protection
Line 446:
 
regex(/((?:[\[=]\s*)(?:https?:|ftp:))([^\]\|\}]*)(\s*[\]\|\}])/gi, protect_function);
regex(/(\{\{(?:harv|sfn|cite ?book)\s?\|)([^\}]+)(\})/gi, protect_function);
regex(/(\|\s*contribution\s*=)([^|}]+)(\|\})/gi, protect_function);
 
// regex(/([\|\{]\s*(?:file(?:name\d?|)|image\d?|image ___location\d?|img|pic|title|quote|chapter|journal|url|archiveurl|work|doi|club|at|volume|reporter)\s*=)([^\|\}⍍]*)([\|\}])/gi, protect_function);