Changeset 13035 in josm


Ignore:
Timestamp:
2017-10-24T22:34:03+02:00 (4 weeks ago)
Author:
Klumbumbus
Message:

fix #15479 - Include meters as a valid unit for distance (patch by naoliv)

File:
1 edited

Legend:

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

    r13027 r13035  
    127127}
    128128
    129 *[distance][distance !~ /^(([0-9]+\.?[0-9]*( (km|mi|nmi))?)|([0-9]+\'[0-9]+\.?[0-9]*\"))$/] {
     129*[distance][distance !~ /^(([0-9]+\.?[0-9]*( (m|km|mi|nmi))?)|([0-9]+\'[0-9]+\.?[0-9]*\"))$/] {
    130130  throwWarning: tr("{0}: kilometers is default; period is separator; if units, put space then unit", "distance");
    131131  assertMatch: "way distance=something";
Note: See TracChangeset for help on using the changeset viewer.