Changes between Version 43 and Version 44 of Rules/FranceSpecificRules


Ignore:
Timestamp:
2020-04-11T14:25:28+02:00 (6 years ago)
Author:
didier2020
Comment:

ajout parenthese avant et apres regex

Legend:

Unmodified
Added
Removed
Modified
  • Rules/FranceSpecificRules

    v43 v44  
    9696}
    9797
    98 
    9998/* Select milestone nodes */
    10099node[highway=milestone][nat_ref] {
     
    102101}
    103102
    104 
    105103/* validation rules for French RIU (Referentiel Inter Urbain) at https://www.data.gouv.fr/fr/datasets/bornage-du-reseau-routier-national   */
    106 node.pr_node[nat_ref][nat_ref!~/^([1-9][0-9]|0[1-9])PR([0-9]|[1-9][0-9]|[1-9][0-9][0-9])[DGU](|C)$/][inside("FR")] {
     104node.pr_node[nat_ref][nat_ref!~/^(([1-9][0-9]|0[1-9])PR([0-9]|[1-9][0-9]|[1-9][0-9][0-9])[DGU](|C))$/][inside("FR")] {
    107105    throwWarning: tr("{0} is not a milestone valid reference RIU", "{1.tag}");
    108106    group: tr("validation rules highway milestone");
     
    161159
    162160/* tag nat_ref is well formed on roundabout*/
    163 way.major_road[nat_ref][nat_ref!~/^([1-9][0-9]|0[1-9])[ANP]9[0-9]{3}([0-9]?[0-9]|B1|B2)(|[A-Z]|[a-z])(|CD)_(1[0-9]|[1-9])$/][junction=roundabout][inside("FR")] {
     161way.major_road[nat_ref][nat_ref!~/^(([1-9][0-9]|0[1-9])[ANP]9[0-9]{3}([0-9]?[0-9]|B1|B2)(|[A-Z]|[a-z])(|CD)_(1[0-9]|[1-9]))$/][junction=roundabout][inside("FR")] {
    164162    throwWarning: tr("{0} is not a valid reference", "{1.tag}");
    165163    group: tr("validation rules nat_ref in France");
     
    169167
    170168/* tag nat_ref is well formed specific Paris*/
    171 way.link_road[nat_ref][nat_ref!~/^75Periph_Paris_[0-9]{2}_(1[0-9]|[1-9])$/][operator="VILLE DE PARIS"][inside("FR")] {
     169way.link_road[nat_ref][nat_ref!~/^(75Periph_Paris_[0-9]{2}_(1[0-9]|[1-9]))$/][operator="VILLE DE PARIS"][inside("FR")] {
    172170    throwWarning: tr("{0} is not a valid reference (Paris)", "{1.tag}");
    173171    group: tr("validation rules nat_ref in France");
     
    176174}
    177175
    178 way.link_road["nat_ref:forward"]["nat_ref:forward"!~/^([1-9][0-9]|0[1-9])[ANP]9[0-9]{3}([0-9]?[0-9]|B1|B2)(|[A-Z]|[a-z])(|CD)_(1[0-9]|[1-9])$/][inside("FR")],
    179 way.link_road["nat_ref:backward"]["nat_ref:backward"!~/^([1-9][0-9]|0[1-9])[ANP]9[0-9]{3}([0-9]?[0-9]|B1|B2)(|[A-Z]|[a-z])(|CD)_(1[0-9]|[1-9])$/][inside("FR")]{
     176way.link_road["nat_ref:forward"]["nat_ref:forward"!~/^(([1-9][0-9]|0[1-9])[ANP]9[0-9]{3}([0-9]?[0-9]|B1|B2)(|[A-Z]|[a-z])(|CD)_(1[0-9]|[1-9]))$/][inside("FR")],
     177way.link_road["nat_ref:backward"]["nat_ref:backward"!~/^(([1-9][0-9]|0[1-9])[ANP]9[0-9]{3}([0-9]?[0-9]|B1|B2)(|[A-Z]|[a-z])(|CD)_(1[0-9]|[1-9]))$/][inside("FR")]{
    180178    throwWarning: tr("{0} is not a valid reference", "{1.tag}");
    181179    group: tr("validation rules nat_ref in France");