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 89:
// ohm
txt.value = txt.value.replace(/(\d)\s?(Y|Z|E|P|T|G|M|k|K|h|da|d|c|m|µ|μ|µ|n|p|f|a|z|y)?\s?(Ω|ohm|Ohm)s?(\W)/g, '$1 $2Ω$4');
 
//frames per second
txt.value = txt.value.replace(/frames\/sec(\W)/gi, 'frame/s$1');
txt.value = txt.value.replace(/frames\/s(\W)/gi, 'frame/s$1');
txt.value = txt.value.replace(/frame\/sec(\W)/gi, 'frame/s$1');
 
// mile per hour