Skip to content

Commit

Permalink
fix Pcode header patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
danmihaila committed Jan 11, 2024
1 parent 843fe1b commit 68adf6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hxl_proxy/pcodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
PCODE_HEADER_PATTERNS = {
r'^admin0RefName$': '#country+name+ref',
r'^admin0Name_([a-z]{2})$': '#country+i_\\1+name',
r'^admin0Pcode$': '#country+code+iso2',
r'^ADM0_PCODE$': '#country+code+iso2',
r'^admin([1-9])RefName$': '#adm\\1+name+ref',
r'^admin([1-9])Name_([a-z]{2})$': '#adm\\1+i_\\2+name',
r'^admin([1-9])Pcode$': '#adm\\1+code',
r'^ADM([1-9])_PCODE$': '#adm\\1+code',
}
"""Regular expressions mapping iTOS headers to HXL hashtags"""

Expand Down

0 comments on commit 68adf6f

Please sign in to comment.