Changes between Version 32 and Version 33 of Rules/PublicTransportGtfs


Ignore:
Timestamp:
2021-02-11T15:15:40+01:00 (5 years ago)
Author:
skyper
Comment:

more relaxed gtfs ids

Legend:

Unmodified
Added
Removed
Modified
  • Rules/PublicTransportGtfs

    v32 v33  
    257257/* route_id, shape_id, trip_id */
    258258/* FIXME: Get proper syntax as regex displayed. */
    259 *[gtfs:route_id      ][gtfs:route_id       !~                           /^[0-9]{1,2}-[A-Z]?[0-9]{1,3}(-?[A-Z])?-j[1-9][0-9j]-[0-9]+(;[ ]?[0-9]{1,2}-[A-Z]?[0-9]{1,3}(-?[A-Z])?-j[1-9][0-9j]-[0-9]+)*$/],
    260 *[gtfs:shape_id      ][gtfs:shape_id       !~                           /^[0-9]{1,2}-[A-Z]?[0-9]{1,3}(-?[A-Z])?-j[1-9][0-9j]-[0-9]+\.[1-9][0-9]{0,2}\.[HR](;[ ]?[0-9]{1,2}-[A-Z]?[0-9]{1,3}(-?[A-Z])?-j[1-9][0-9j]-[0-9]+\.[1-9][0-9]{0,2}\.[HR])*$/],
    261 *[gtfs:trip_id       ][gtfs:trip_id        !~ /^[1-9][0-9]{0,3}\.T[023A]\.[0-9]{1,2}-[A-Z]?[0-9]{1,3}(-?[A-Z])?-j[1-9][0-9j]-[0-9]+\.[1-9][0-9]{0,2}\.[HR](;[ ]?[1-9][0-9]{0,3}\.T[023A]\.[0-9]{1,2}-[A-Z]?[0-9]{1,3}(-?[A-Z])?-j[1-9][0-9j]-[0-9]+\.[1-9][0-9]{0,2}\.[HR])*$/],
    262 *[gtfs:trip_id:sample][gtfs:trip_id:sample !~ /^[1-9][0-9]{0,3}\.T[023A]\.[0-9]{1,2}-[A-Z]?[0-9]{1,3}(-?[A-Z])?-j[1-9][0-9j]-[0-9]+\.[1-9][0-9]{0,2}\.[HR](;[ ]?[1-9][0-9]{0,3}\.T[023A]\.[0-9]{1,2}-[A-Z]?[0-9]{1,3}(-?[A-Z])?-j[1-9][0-9j]-[0-9]+\.[1-9][0-9]{0,2}\.[HR])*$/] {
     259*[gtfs:route_id      ][gtfs:route_id       !~                           /^[0-9]{1,2}-[A-Z]?[0-9]{1,3}[A-Z]?(-[A-Z])?-j[1-9][0-9j]-[0-9]+(;[ ]?[0-9]{1,2}-[A-Z]?[0-9]{1,3}[A-Z]?(-[A-Z])?-j[1-9][0-9j]-[0-9]+)*$/],
     260*[gtfs:shape_id      ][gtfs:shape_id       !~                           /^[0-9]{1,2}-[A-Z]?[0-9]{1,3}[A-Z]?(-[A-Z])?-j[1-9][0-9j]-[0-9]+\.[1-9][0-9]{0,2}\.[HR](;[ ]?[0-9]{1,2}-[A-Z]?[0-9]{1,3}[A-Z]?(-[A-Z])?-j[1-9][0-9j]-[0-9]+\.[1-9][0-9]{0,2}\.[HR])*$/],
     261*[gtfs:trip_id       ][gtfs:trip_id        !~ /^[1-9][0-9]{0,3}\.T[023A]\.[0-9]{1,2}-[A-Z]?[0-9]{1,3}[A-Z]?(-[A-Z])?-j[1-9][0-9j]-[0-9]+\.[1-9][0-9]{0,2}\.[HR](;[ ]?[1-9][0-9]{0,3}\.T[023A]\.[0-9]{1,2}-[A-Z]?[0-9]{1,3}[A-Z]?(-[A-Z])?-j[1-9][0-9j]-[0-9]+\.[1-9][0-9]{0,2}\.[HR])*$/],
     262*[gtfs:trip_id:sample][gtfs:trip_id:sample !~ /^[1-9][0-9]{0,3}\.T[023A]\.[0-9]{1,2}-[A-Z]?[0-9]{1,3}[A-Z]?(-[A-Z])?-j[1-9][0-9j]-[0-9]+\.[1-9][0-9]{0,2}\.[HR](;[ ]?[1-9][0-9]{0,3}\.T[023A]\.[0-9]{1,2}-[A-Z]?[0-9]{1,3}[A-Z]?(-[A-Z])?-j[1-9][0-9j]-[0-9]+\.[1-9][0-9]{0,2}\.[HR])*$/] {
    263263  throwError: tr("Value `{0}` for `{1}=*` does not match value syntax.", "{0.value}", "{0.key}");
    264264/*  throwError: tr("Value `{0}` for `{1}=*` does not match value syntax `{2}`.", "{0.value}", "{0.key}", "{1.value}"); */