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

Content deleted Content added
Bobblewik (talk | contribs)
mNo edit summary
Bobblewik (talk | contribs)
mNo edit summary
Line 14:
txt.value = txt.value.replace(/deg[^\(]([CF])/gi, '°$1');
txt.value = txt.value.replace(/deg\s([CF])/gi, '°$1');
txt.value = txt.value.replace(/deg\.?\s?([CF])/gi, '°$1');
txt.value = txt.value.replace(/degrees?\s([CF])(\W)/gi, '°$1$2');