Changes between Version 42 and Version 43 of Rules/PublicTransportGtfs


Ignore:
Timestamp:
2025-01-03T02:11:57+01:00 (7 weeks ago)
Author:
skyper
Comment:

A new year; remove duplicate assertMatch

Legend:

Unmodified
Added
Removed
Modified
  • Rules/PublicTransportGtfs

    v42 v43  
    303303*[network:guid ][network:guid  !~ /^(([A-Z]{2}-){2}[a-zA-Z]{2}.*|[A-Z]{2}-Flixbus|BO-C-Cochabamba|(CH|LU)-[a-zA-Z]{3,}|CO-BOY-[A-Z].+|ES-AR-Z-[A-Z].+|FR-IDF-(r|[a-zA-Z]{3,}.*)|MG-T-Antananarivo)$/],
    304304*[operator:guid][operator:guid !~ /^(([A-Z]{2}-){2}[a-zA-Z]{2}.*|[A-Z]{2}-Flixbus|BO-C-Cochabamba|(CH|LU)-[a-zA-Z]{3,}|CO-BOY-[A-Z].+|ES-AR-Z-[A-Z].+|FR-IDF-(r|[a-zA-Z]{3,}.*)|MG-T-Antananarivo)$/],
    305 *[gtfs:release_date][gtfs:release_date !~ /^20(2[0-4])-(0[1-9]|1[0-2])-(3[01]|[12][0-9]|0[1-9])$/] {
     305*[gtfs:release_date][gtfs:release_date !~ /^20(2[0-5])-(0[1-9]|1[0-2])-(3[01]|[12][0-9]|0[1-9])$/] {
    306306  throwError: tr("Value `{0}` for `{1}=*` does not match value syntax.", "{0.value}", "{0.key}");
    307307/*  throwError: tr("Value `{0}` for `{1}=*` does not match value syntax `{2}`.", "{0.value}", "{0.key}", "{1.value}"); */
     
    315315  assertMatch:   "relation gtfs:release_date=2016-09-30";
    316316  assertMatch:   "relation gtfs:release_date=2020-9-3";
    317   assertMatch:   "relation gtfs:release_date=2016-09-30";
    318   assertNoMatch: "relation gtfs:release_date=2020-09-30";
     317  assertNoMatch: "relation gtfs:release_date=2024-09-30";
    319318}
    320319/* ref:IFOPT, gtfs:stop_id */