Skip to content

Commit

Permalink
fix: add address id type in regex #452
Browse files Browse the repository at this point in the history
  • Loading branch information
wazolab committed Dec 19, 2024
1 parent d83ee58 commit f19d23d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions composables/useIdsResolver.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const regexForCategoryIds = /^(?:(?<cartocode>cartocode:\w{2})|(?<reference>ref:[\w-]+:\w+)|(?<osm>osm:[nwr]\d+)|\d+(?:,\d+)*)$/
export const regexForPOIIds = /^(?:cartocode:\w{2}|ref:[\w-]+:\w+|osm:[nwr]\d+|\d+)$/
export const regexForCategoryIds = /^(?:(?<cartocode>cartocode:\w{2})|(?<reference>ref:[\w-]+:\w+)|(?<osm>osm:[nwr]\d+)|\d+(_[a-zA-Z0-9]+)*(?:,\d+)*)$/
export const regexForPOIIds = /^(?:cartocode:\w{2}|ref:[\w-]+:\w+|osm:[nwr]\d+|\d+(_[a-zA-Z0-9]+)*)$/

export function useIdsResolver() {

Expand Down

0 comments on commit f19d23d

Please sign in to comment.