Changes between Initial Version and Version 1 of Rules/CountryCodeCheck
- Timestamp:
- 2023-04-09T10:58:47+02:00 (20 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Rules/CountryCodeCheck
v1 v1 1 = Country Code Check = 2 3 {{{ 4 #!rule 5 meta { 6 title: "Country Code Check"; 7 version: "1.[[revision]]_[[date]]"; 8 author: "CjMalone"; 9 link: "https://josm.openstreetmap.de/wiki/Rules/CountryCodeCheck"; 10 baselanguage: "en"; 11 } 12 13 *[addr:country][addr:country!~/^[A-Z]{2}$/] { 14 throwWarning: "addr:country should be a valid country code, e.g. DE, GB or US"; 15 } 16 }}}