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

Content deleted Content added
Remove all comments for now
try to handle dBu, dBm, etc.
Line 22:
 
// Add a space before dB or B
txt.value = txt.value.replace(/(\d)\s?(dB|B*)\b/g, '$1 $2');
txt.value = txt.value.replace(/(\d)\s?B\b/g, '$1 B');
 
// Add a space before any units that were missed before