-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Hi. In my occasion i needed spaces between the dms coordinates like this 51 30 0.54, -0 7 34.45.
So for anyone interested you just have to change the main regex to this in order to get the results.
FROM THIS
var dmsRe = /([NSEW])?(-)?(\d+(?:.\d+)?)[°º:d\s]?\s?(?:(\d+(?:.\d+)?)['’‘′:]\s?(?:(\d{1,2}(?:.\d+)?)(?:"|″|’’|'')?)?)?\s?([NSEW])?/i;
TO THIS
var dmsRe = /([NSEW])?(-)?(\d+(?:.\d+)?)[°º:d\s]?\s?(?:(\d+(?:.\d+)?)[^’‘′]\s?(?:(\d{1,2}(?:.\d+)?)(?:"|″|’’|''|^|)?)?)?\s?([NSEW])?/i;
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels