Changes between Version 60 and Version 61 of Rules/FranceSpecificRules


Ignore:
Timestamp:
2021-03-17T22:47:49+01:00 (4 years ago)
Author:
francois.lacombe
Comment:

In #20607 - Add more precise validation rules for French telecom references

Legend:

Unmodified
Added
Removed
Modified
  • Rules/FranceSpecificRules

    v60 v61  
    5656    fixAdd: "operator=Enedis";
    5757    -osmoseItemClassLevel: "4010/40103/3";
    58     -osmoseTags: list("tag", "infrastructure");
     58    -osmoseTags: list("tag", "infrastructure", "power");
    5959}
    6060
     
    6666    fixChangeKey: "ref:ERDF:gdo=>ref:FR:gdo";
    6767    -osmoseItemClassLevel: "4010/40104/3";
    68     -osmoseTags: list("ref", "infrastructure");
     68    -osmoseTags: list("ref", "infrastructure", "power");
    6969}
    7070
     
    7373    throwWarning: tr("{0} is invalid", "{0.tag}");
    7474    -osmoseItemClassLevel: "3040/30401/3";
    75     -osmoseTags: list("ref", "infrastructure");
     75    -osmoseTags: list("ref", "infrastructure", "power");
    7676}
    7777
     
    8181    group: tr("missing tag");
    8282    -osmoseItemClassLevel: "3040/30402/3";
    83     -osmoseTags: list("ref", "infrastructure");
     83    -osmoseTags: list("ref", "infrastructure", "power");
    8484}
    8585
     
    9393    group: tr("missing tag");
    9494    -osmoseItemClassLevel: "3040/30403/3";
    95     -osmoseTags: list("ref", "infrastructure");
     95    -osmoseTags: list("ref", "infrastructure", "telecom");
     96}
     97
     98/* #20607 - Add regexp validation rules for French telecom references */
     99*["ref:FR:Orange"]["ref:FR:Orange"!~/PT[1-9]{1}[0-9]*/][inside("FR")] {
     100    throwWarning: tr("{0} is invalid. Should look like PT123 without trailing zeros", "{0.tag}");
     101    -osmoseItemClassLevel: "3040/30401/3";
     102    -osmoseTags: list("ref", "infrastructure", "telecom");
     103}
     104*["ref:FR:Orange:NRO"]["ref:FR:Orange:NRO"!~/[0-9]{5}[A-Z0-9]{3}/][inside("FR")] {
     105    throwWarning: tr("{0} is invalid. Should look like 12345ABC", "{0.tag}");
     106    -osmoseItemClassLevel: "3040/30401/3";
     107    -osmoseTags: list("ref", "infrastructure", "telecom");
     108}
     109*["ref:FR:PTT"]["ref:FR:PTT"!~/[A-Z0-9]{3}/][inside("FR")] {
     110    throwWarning: tr("{0} is invalid. Should look like ABC", "{0.tag}");
     111    -osmoseItemClassLevel: "3040/30401/3";
     112    -osmoseTags: list("ref", "infrastructure", "telecom");
     113}
     114*["ref:FR:PTT:NRA"]["ref:FR:PTT:NRA"!~/[0-9]{5}[A-Z0-9]{3}/][inside("FR")] {
     115    throwWarning: tr("{0} is invalid. Should look like 12345ABC", "{0.tag}");
     116    -osmoseItemClassLevel: "3040/30401/3";
     117    -osmoseTags: list("ref", "infrastructure", "telecom");
    96118}
    97119