User:Bobblewik/monobook.js/unitformatter.js: Difference between revisions

Content deleted Content added
Bobblewik (talk | contribs)
mNo edit summary
Bobblewik (talk | contribs)
mNo edit summary
Line 183:
// Common error with bits and bytes
txt.value = txt.value.replace(/mibi(bit|byte)/g, 'mebi$1');
 
//Remove 'Easter eggs' diversions from unit name to orders of magnitude articles
[[1 E-3 m|mm]]
txt.value = txt.value.replace(/\[\[1\sE\-?\d{1,2}\s\w{1,2}\|(......)\]\]/gi, '$1');
 
// Add a tag to the summary box