Changes between Version 4 and Version 5 of Rules/UkrainePhoneNumbers
- Timestamp:
- 2022-05-23T21:04:45+02:00 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Rules/UkrainePhoneNumbers
v4 v5 7 7 description: "Verify Ukrainian phone numbers formating and validity. Rules for checking phone number formats in Ukraine. The phone must conform to the format `+380 aa xxx xxxxx;+380 aaa xx xxxxx;+380 аааа хх ххх`, where `+380` is the code of Ukraine, `аа` / `ааа` / `аааа` is the code of the operator or area, `ххх хххх` / `хх хххх` / `хх ххх` - number format for seven-, six- and five-digit numbers that can be used in the local network without using the network code. Toll-free phones `0 800 ххх ххх` must be specified without a country code, the `phone: UA` key is used to record them."; 8 8 author: "andygol"; 9 icon: "Flag_of_Ukraine_phone_check.svg"; 9 10 link: "https://josm.openstreetmap.de/wiki/Rules/UkrainePhoneNumbers"; 10 11 min-josm-version: "11424"; /* due to territory selectors */ … … 23 24 } 24 25 25 *[/^phone$/ =~ /^( (0 800 \d{3} \d{3});?)*$/][inside("UA")] {26 *[/^phone$/ =~ /^(;?(0 800 \d{3} \d{3}))*$/][inside("UA")] { 26 27 throwError: tr("{0}", ""); 27 28 group: tr("A toll-free phone number is listed in the \"phone\" tag");