diff --git a/geoportal/geoportailv3_geoportal/static-ngeo/js/CoordinateMatch.js b/geoportal/geoportailv3_geoportal/static-ngeo/js/CoordinateMatch.js index 025bf00d4..f734818ff 100644 --- a/geoportal/geoportailv3_geoportal/static-ngeo/js/CoordinateMatch.js +++ b/geoportal/geoportailv3_geoportal/static-ngeo/js/CoordinateMatch.js @@ -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' }, @@ -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(',', '.')); }