Skip to content

Commit

Permalink
Merge pull request #1007 from geoadmin/bug-PB-801-coordinate-format
Browse files Browse the repository at this point in the history
PB-801: Allow all possible quotes style in coordinate extractor - #patch
  • Loading branch information
ltshb authored Jul 16, 2024
2 parents 4d2996c + 342e6ab commit 510548f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/coordinates/coordinateExtractors.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import { toPoint as mgrsToWGS84 } from '@/utils/militaryGridProjection'

const RE_DEGREE_IDENTIFIER = '\\s*°\\s*'
const RE_DEGREE = `\\d{1,3}(\\.\\d+)?`
const RE_MIN_IDENTIFIER = "\\s*[']\\s*"
const RE_MIN_IDENTIFIER = "\\s*['‘’‛′]\\s*"
const RE_MIN = `\\d{1,2}(\\.\\d+)?`
const RE_SEC_IDENTIFIER = '\\s*("|[\']{2})\\s*'
const RE_SEC_IDENTIFIER = '\\s*(["“”‟″]|[\'‘’‛′]{2})\\s*'
const RE_SEC = `\\d{1,2}(\\.\\d+)?`
const RE_CARD = '[NSEW]'
const RE_SEPARATOR = '\\s*?[ \\t,/]\\s*'
Expand Down

0 comments on commit 510548f

Please sign in to comment.