Changeset 17267 in josm


Ignore:
Timestamp:
2020-10-26T16:03:33+01:00 (5 weeks ago)
Author:
Klumbumbus
Message:

see #19907 - Remove foot/inch from maxweight/maxaleload regular expressions

File:
1 edited

Legend:

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

    r17266 r17267  
    267267}
    268268
    269 *[maxaxleload][maxaxleload !~ /^(([0-9]+(\.[0-9]+)?( (t|kg|st|lbs))?)|([0-9]+\'([0-9]+(\.[0-9]+)?\")?))$/]!.maxaxleload_separator_autofix,
    270 *[maxweight][maxweight !~ /^(([0-9]+(\.[0-9]+)?( (t|kg|st|lbs))?)|([0-9]+\'([0-9]+(\.[0-9]+)?\")?))$/]!.maxweight_separator_autofix {
     269*[maxaxleload][maxaxleload !~ /^([0-9]+(\.[0-9]+)?( (t|kg|st|lbs))?)$/]!.maxaxleload_separator_autofix,
     270*[maxweight][maxweight !~ /^([0-9]+(\.[0-9]+)?( (t|kg|st|lbs))?)$/]!.maxweight_separator_autofix {
    271271  throwWarning: tr("unusual value of {0}: tonne is default; point is decimal separator; if units, put space then unit", "{0.key}");
    272272  assertMatch: "node maxaxleload=something";
    273273  assertMatch: "node maxweight=-5";
    274274  assertNoMatch: "node maxaxleload=2";
    275   assertNoMatch: "node maxweight=12'";
    276   assertNoMatch: "node maxweight=6'6\"";
    277275  assertNoMatch: "node maxaxleload=2.5";
    278276  assertNoMatch: "node maxaxleload=7 kg";
Note: See TracChangeset for help on using the changeset viewer.