Changeset 6645 in josm for trunk/data


Ignore:
Timestamp:
2014-01-06T18:40:17+01:00 (6 years ago)
Author:
simon04
Message:

see #9414 - MapCSS validator: some performance imrovements (pre-compile regular expressions, drop regular expressions for key presence checks)

Location:
trunk/data/validator
Files:
2 edited

Legend:

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

    r6550 r6645  
    7171*[source:height                ][!height],
    7272*[source:lanes                 ][!lanes],
    73 *[/source:(addr:)?postcode/    ][!addr:postcode],
    74 *[/source:(addr:)?housenumber/ ][!addr:housenumber],
     73*[source:postcode              ][!addr:postcode],
     74*[source:housenumber           ][!addr:housenumber],
     75*[source:addr:postcode         ][!addr:postcode],
     76*[source:addr:housenumber      ][!addr:housenumber],
    7577*[source:addr                  ][!/^addr:/],
    7678*[source:maxspeed              ][!/^maxspeed:?/] {
  • trunk/data/validator/deprecated.mapcss

    r6633 r6645  
    179179
    180180/* from http://wiki.openstreetmap.org/wiki/Conditional_restrictions#Deprecated_tags */
    181 *[/(day|date|hour)_(on|off)/][!restriction] {
     181*[day_on][!restriction],
     182*[day_off][!restriction],
     183*[date_on][!restriction],
     184*[date_off][!restriction],
     185*[hour_on][!restriction],
     186*[hour_off][!restriction] {
    182187  throwWarning: tr("{0} is deprecated", "{0.key}");
    183188  suggestAlternative: "*:conditional";
Note: See TracChangeset for help on using the changeset viewer.