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 161:
// bytes per second
txt.value = txt.value.replace(/([KkMmGg])(Bps|bytes?\/s)/g, ' $1B/s');
txt.value = txt.value.replace(/bytes?\/sec(\W)/gi, '$1 B/s$1');
txt.value = txt.value.replace(/B\/sec(\W)/g, 'B/s$1');
 
// capitalization of prefix with bits and bytes