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
txt.value = txt.value.replace(/(\d)\s?B\b/g, '$1 B');
// Add a space before any units that were missed before
|