Changeset 14728 in josm


Ignore:
Timestamp:
2019-01-24T20:03:14+01:00 (8 weeks ago)
Author:
simon04
Message:

see #17225 - Validate correct Key:interval syntax

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/validator/numeric.mapcss

    r14593 r14728  
    349349  throwError: tr("unusual value of {0}", "{0.key}");
    350350}
     351
     352*[interval][interval !~ /^([0-9][0-9]?|[0-9][0-9]:[0-5][0-9](:[0-9][0-9])?)$/] {
     353  throwWarning: tr("unusual value of {0}", "{0.key}");
     354  assertNoMatch: "way interval=5";
     355  assertNoMatch: "way interval=20";
     356  assertNoMatch: "way interval=00:05";
     357  assertNoMatch: "way interval=00:05:00";
     358  assertNoMatch: "way interval=03:00:00";
     359  assertMatch: "way interval=123";
     360  assertMatch: "way interval=0:5:0";
     361  assertMatch: "way interval=00:65:00";
     362}
Note: See TracChangeset for help on using the changeset viewer.