Content deleted Content added
Lightmouse (talk | contribs) updated from test_script |
Lightmouse (talk | contribs) No edit summary |
||
Line 629:
//inch: plural
txt.value=txt.value.replace(/([^\
txt.value=txt.value.replace(/([^\d])(\d[\d,\.]*)(?:\s|-| |)(?:inches|\[\[inches\]\])([:;,\.?!]?\s[^\d\(\)\/\\])/gi, '$1{{convert|$2|in|m}}$3');
// inch: plural with number in words
txt.value=txt.value.replace(/([^ty]\sthree(?:\s|-| |)(?:inches|\[\[inches\]\]))([:;,\.?!]?\s[^\d\(\)\/\\])/gi, '$1 (76 mm) $2');
Line 646 ⟶ 647:
txt.value=txt.value.replace(/([^ty]\ssixteen(?:\s|-| |)(?:inches|\[\[inches\]\]))([:;,\.?!]?\s[^\d\(\)\/\\])/gi, '$1 (406 mm) $2');
//inch: singular
txt.value=txt.value.replace(/([^\
txt.value=txt.value.replace(/([^\d])(\d[\d,\.]*)(?:\s|-| |)(?:inch|\[\[inch\]\])([:;,\.?!]?\s[^\d\(\)\/\\])/gi, '$1{{convert|$2|in|m|sing=on}}$3');
txt.value=txt.value.replace(/({convert\|\d+\|(?:in|mm|cm)[^\}]*)\|lk=(?:on|in|out)/g, '$1');
// inch: singular with number in words
|