User:Bobblewik/monobook.js/units nbsp.js: Difference between revisions

Content deleted Content added
Bobblewik (talk | contribs)
mNo edit summary
Bobblewik (talk | contribs)
mNo edit summary
Line 101:
txt.value = txt.value.replace(/([\(\|]\d{1,4})\s?['’]\s?(\d{1,2})\s?["”][^NESW]/g, '$1 ft $2 in');
txt.value = txt.value.replace(/(\d)\s?ft\s(\d)\s?in/gi, '$1 ft $2 in');
 
txt.value = txt.value.replace(/(\d)\s?feet/gi, '$1 feet');
txt.value = txt.value.replace(/(\d)\s?foot/gi, '$1 foot');
 
txt.value = txt.value.replace(/(\d)\s?knots/gi, '$1 knots');
txt.value = txt.value.replace(/(\d)\s?nmi/gi, '$1 nmi');
txt.value = txt.value.replace(/(\d)\s?nm/gi, '$1 nm');
 
//Symbols for square feet