Content deleted Content added
mNo edit summary |
mNo edit summary |
||
Line 157:
txt.value = txt.value.replace(/([KkMmGg])(bps|bits?\/s|b\/s)/g, '$1bit/s');
txt.value = txt.value.replace(/(\d)\s?(bps)/gi, '$1 bit/s');
txt.value = txt.value.replace(/bits?\/sec(\W)/gi, '
// 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 bit/s$
// capitalization of prefix with bits and bytes
|