Changes between Version 27 and Version 28 of Styles/Maxspeed


Ignore:
Timestamp:
2015-10-20T02:28:52+02:00 (10 years ago)
Author:
Klumbumbus
Comment:

small code improvements

Legend:

Unmodified
Added
Removed
Modified
  • Styles/Maxspeed

    v27 v28  
    4848
    4949/*
     50
    5051table of contents
    5152
     
    129130
    130131/* 2.4 - read conditional maxspeed values */
    131 way["maxspeed:conditional"=~/^(none|[1-9][0-9]*) @/]::maxspeedlayer
     132way["maxspeed:conditional"=~/^(none|[1-9][0-9]*) @ /]::maxspeedlayer
    132133{
    133134        maxsp_cond: get(split(" ", tag("maxspeed:conditional")), 0);
    134135        set cond_kmh;
    135136}
    136 way["maxspeed:forward:conditional"=~/^(none|[1-9][0-9]*) @/]::maxspeedlayer
     137way["maxspeed:forward:conditional"=~/^(none|[1-9][0-9]*) @ /]::maxspeedlayer
    137138{
    138139        maxsp_forward_cond: get(split(" ", tag("maxspeed:forward:conditional")), 0);
    139140        set cond_forward_kmh;
    140141}
    141 way["maxspeed:backward:conditional"=~/^(none|[1-9][0-9]*) @/]::maxspeedlayer
     142way["maxspeed:backward:conditional"=~/^(none|[1-9][0-9]*) @ /]::maxspeedlayer
    142143{
    143144        maxsp_backward_cond: get(split(" ", tag("maxspeed:backward:conditional")), 0);
    144145        set cond_backward_kmh;
    145146}
    146 way["maxspeed:conditional"=~/^[1-9][0-9]* mph @/]::maxspeedlayer
     147way["maxspeed:conditional"=~/^[1-9][0-9]* mph @ /]::maxspeedlayer
    147148{
    148149        maxsp_cond: get(split(" ", tag("maxspeed:conditional")), 0);
    149150        set cond_mph;
    150151}
    151 way["maxspeed:forward:conditional"=~/^[1-9][0-9]* mph @/]::maxspeedlayer
     152way["maxspeed:forward:conditional"=~/^[1-9][0-9]* mph @ /]::maxspeedlayer
    152153{
    153154        maxsp_forward_cond: get(split(" ", tag("maxspeed:forward:conditional")), 0);
    154155        set cond_forward_mph;
    155156}
    156 way["maxspeed:backward:conditional"=~/^[1-9][0-9]* mph @/]::maxspeedlayer
     157way["maxspeed:backward:conditional"=~/^[1-9][0-9]* mph @ /]::maxspeedlayer
    157158{
    158159        maxsp_backward_cond: get(split(" ", tag("maxspeed:backward:conditional")), 0);
     
    13411342
    13421343/* 6.2 - report wrong value of maxspeed:conditional */
    1343 way["maxspeed:conditional"=~/^[1-9][0-9]* knots @/]::maxspeedlayer,
    1344 way["maxspeed:forward:conditional"=~/^[1-9][0-9]* knots @/]::maxspeedlayer,
    1345 way["maxspeed:backward:conditional"=~/^[1-9][0-9]* knots @/]::maxspeedlayer
     1344way["maxspeed:conditional"=~/^[1-9][0-9]* knots @ /]::maxspeedlayer,
     1345way["maxspeed:forward:conditional"=~/^[1-9][0-9]* knots @ /]::maxspeedlayer,
     1346way["maxspeed:backward:conditional"=~/^[1-9][0-9]* knots @ /]::maxspeedlayer
    13461347{
    13471348        set cond_knots;