Content deleted Content added
mNo edit summary |
mNo edit summary |
||
Line 86:
// Symbols for feet and inches
txt.value = txt.value.replace(/([^;°NSEW]\s?\s?)(\d{1,4})\s?(['’])\s?(\d{1,2})\s?(["”])/gi, '$1$2 ft $4 in');
//txt.value = txt.value.replace(/([:=\/\(])\s*(\d{1,3)\s?(['’])\s?(1?\d)\s?(["”])/gi, '$1$2 ft $4 in');
//txt.value = txt.value.replace(/(1?\d)\s?(["”])/gi, '$1 in');
Line 102:
// Add a space before any units that were missed before
txt.value = txt.value.replace(/(\d)\s?(Y|Z|E|P|T|G|M|k|K|h|da|d|c|m|µ|n|p|f|a|z|y)?(g|m|A|K|mol|cd|rad|sr|Hz|N|J|W|Pa|lm|lx|C|V|Ω|F|Wb|T|H|S|Bq|Gy|Sv|kat
// Separate one for seconds since they give a lot of false positives like "1970s". Only difference is mandatory prefix.
|