User:Thespaceface/MetricFirst.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 14:
h = h.replace(/([0-9,.]+&nbsp;acres) \(([0-9,.]+&nbsp;km<sup>2<\/sup>)\)/g,'$2 ($1)');
h = h.replace(/([0-9,.]+&nbsp;acres) \(([0-9,.]+&nbsp;ha)\)/g,'$2 ($1)');
h = h.replace(/(-?[0-9,.]+) feet \((-?[0-9.,]+)&nbsp;m\)/g,'$2 metres ($1 ft)');
h = h.replace(/([0-9,.]+ ft) \(([0-9,.]+&nbsp;m)\)/g,'$2 ($1)');
h = h.replace(/([0-9,.]+) pounds \(([0-9,.]+)&nbsp;kg\)/g,'$2 kilograms ($1 lb)');
h = h.replace(/(-?[0-9,.]+) feet \((-?[0-9.,]+)&nbsp;m\)/g,'$2 metres ($1 ft)');
h = h.replace(/([0-9,.]+) per square mile \(([0-9,.]+)\/km²\)/g,'$2 per square kilometre ($1/sq mi)');
h = h.replace(/(-?[0-9,.]+&nbsp;ft) \((-?[0-9,.]+ m)\)/g,'$2 ($1)');
h = h.replace(/(-?[0-9,.]+&nbsp;ft) \((-?[0-9,.]+&nbsp;m)\)/g,'$2 ($1)');
h = h.replace(/(-?[0-9,.]+&nbsp;ft)&nbsp; \((-?[0-9,.]+ m)\)/g,'$2 ($1)');
h = h.replace(/(-?[0-9,.]+&nbsp;ft)&nbsp; \((-?[0-9,.]+&nbsp;m)\)/g,'$2 ($1)');
h = h.replace(/(-?[0-9,.]+&nbsp;ft)&nbsp;\((-?[0-9,.]+ m)\)/g,'$2 ($1)');
h = h.replace(/(-?[0-9,.]+&nbsp;ft)&nbsp;\((-?[0-9,.]+&nbsp;m)\)/g,'$2 ($1)');
h = h.replace(/([0-9,.]+)-square-foot \(([0-9,.]+)&nbsp;m<sup>2<\/sup>\)/g,'$2-square-metre ($1 ft<sup>2</sup>)');
h = h.replace(/([0-9,.]+ sq ft) \(([0-9,.]+&nbsp;m<sup>2<\/sup>)\)/g,'$2 ($1)');