MediaWiki:Gadget-popups.js:修订间差异
跳到导航
跳到搜索
(test) |
无编辑摘要 |
||
第1行: | 第1行: | ||
mw.loader.load('//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-popups.js&action=raw&ctype=text/javascript'); | |||
// | |||
// | |||
function escapeRegExp ( str ){ | function escapeRegExp ( str ){ | ||
return str.replace( /([\\{}()|.?*+\-^$\[\]])/g, '\\$1' ); | |||
return | |||
} | } | ||
function literalizeRegex(str){ | function literalizeRegex(str){ | ||
return escapeRegExp(str); | return escapeRegExp(str); | ||
} | } | ||
第4,370行: | 第20行: | ||
return '(?:' + imageNamespaceVariants.join('|') + ')'; | return '(?:' + imageNamespaceVariants.join('|') + ')'; | ||
} | } | ||
第6,535行: | 第81行: | ||
return appendParamsToLink(lk, cmd); | return appendParamsToLink(lk, cmd); | ||
} | } | ||