Closed robcleghorn closed 10 years ago
Happy to see you're interested. Could you provide an example of a string that your modified regex will match?
I would encourage you to fork and I'll merge it all in when you are done. Thanks for the improvement - Cheers!
51° 30′ 26″ N, 0° 7′ 39″ W
PS i've converted it to typescript so forking is probably not very useful for you. Thanks for sharing!
I've modified the regex to support wikipedia lat lng chars. DMS_FORMATREGEX = (/^[NSEW]?\s(\d{1,3})°?\s(?:(\d{1,2})[',′]?\s(?:(\d{1,2}(?:.\d+)?)[",″]?\s_)?)?\s*[NSEW]?$/);