Changes between Version 4 and Version 5 of Rules/UkrainePhoneNumbers


Ignore:
Timestamp:
2022-05-23T21:04:45+02:00 (2 years ago)
Author:
andygol
Comment:

Added. icon

Legend:

Unmodified
Added
Removed
Modified
  • Rules/UkrainePhoneNumbers

    v4 v5  
    77    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.";
    88    author: "andygol";
     9    icon: "Flag_of_Ukraine_phone_check.svg​";
    910    link: "https://josm.openstreetmap.de/wiki/Rules/UkrainePhoneNumbers";
    1011    min-josm-version: "11424"; /* due to territory selectors */
     
    2324}
    2425
    25 *[/^phone$/ =~ /^((0 800 \d{3} \d{3});?)*$/][inside("UA")] {
     26*[/^phone$/ =~ /^(;?(0 800 \d{3} \d{3}))*$/][inside("UA")] {
    2627    throwError: tr("{0}", "");
    2728    group: tr("A toll-free phone number is listed in the \"phone\" tag");