Skip to content

Commit

Permalink
Allow pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
rmichaelis committed Jan 25, 2024
1 parent 2d22dd2 commit a3e7188
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ export function matchCoordinate(searchString, mapEpsgCode, maxExtent, coordinate
epsgCode: 'EPSG:32632'
},
'EPSG:2169': {
regex: /(\d{4,6}[\,\.]?\d{0,3})\s*([E|N])?\W*(\d{4,6}\s*[\,\.\|]\s*?\d{0,3})\s*([E|N])?/,
regex: /(\d{4,6}[\,\.]?\d{0,3})\s*([E|N])?\W*(\d{4,6}\s*[\,\.\|]?\s*?\d{0,3})\s*([E|N])?/,
label: 'LUREF',
epsgCode: 'EPSG:2169'
},
'EPSG:2169:V2': {
regex: /(\d{4,6})\s*([E|N])?\s*[\,\.\|]\s*(\d{4,6})\s*([E|N])?/,
regex: /(\d{4,6})\s*([E|N])?\s*[\,\.\|]?\s*(\d{4,6})\s*([E|N])?/,
label: 'LUREF',
epsgCode: 'EPSG:2169'
},
Expand Down Expand Up @@ -91,7 +91,7 @@ export function matchCoordinate(searchString, mapEpsgCode, maxExtent, coordinate
easting = parseFloat(m[1].replace(',', '.'));
northing = parseFloat(m[3].replace(',', '.'));
}
} else if (m[2] === undefined && m[4] === undefined) {
} else if ((m[2] === undefined || m[2] === '|')&& m[4] === undefined) {
easting = parseFloat(m[1].replace(',', '.'));
northing = parseFloat(m[3].replace(',', '.'));
}
Expand Down

0 comments on commit a3e7188

Please sign in to comment.