Skip to content

Commit

Permalink
Merge pull request #3123 from Geoportail-Luxembourg/fix_coordinates_s…
Browse files Browse the repository at this point in the history
…ervice

Allow blank char after comma
  • Loading branch information
rmichaelis authored Jan 16, 2024
2 parents c6765f8 + bd087a2 commit e6fc2ea
Showing 1 changed file with 2 additions and 2 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}[\,\.]?\d{0,3})\s*([E|N])?/,
regex: /(\d{4,6}[\,\.]?\d{0,3})\s*([E|N])?\W*(\d{4,6}[\,\.]\s*?\d{0,3})\s*([E|N])?/,
label: 'LUREF',
epsgCode: 'EPSG:2169'
},
'EPSG:2169:V2': {
regex: /(\d{4,6})\s*([E|N])?[\,\.](\d{4,6})\s*([E|N])?/,
regex: /(\d{4,6})\s*([E|N])?[\,\.]\s*(\d{4,6})\s*([E|N])?/,
label: 'LUREF',
epsgCode: 'EPSG:2169'
},
Expand Down

0 comments on commit e6fc2ea

Please sign in to comment.