Home
Random
Nearby
Log in
Settings
Donate Now
If Wikipedia is useful to you, please give today.
About Wikipedia
Disclaimers
Search
User:Bobblewik/monobook.js/unitformatter.js: Difference between revisions
User page
Talk
Language
Watch
View history
View source
Browse history interactively
← Previous edit
Next edit →
Content deleted
Content added
Revision as of 14:37, 10 June 2006
view source
Bobblewik
(
talk
|
contribs
)
66,026
edits
m
No edit summary
← Previous edit
Revision as of 18:03, 10 June 2006
view source
Bobblewik
(
talk
|
contribs
)
66,026
edits
m
No edit summary
Next edit →
Line 128:
// bps or b/s or bits/s --> bit/s
txt.value = txt.value.replace(/([
KkMmGgTtPpEeYyZz
kmg
])(bps|bits?\/s|b\/s)/
g
gi
, '$1bit/s');
txt.value = txt.value.replace(/(\d)\s?(bps)/gi, '$1 bit/s');