Changeset 8700 in josm
- Timestamp:
- 2015-08-28T22:25:40+02:00 (9 years ago)
- Location:
- trunk/data/validator
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/data/validator/combinations.mapcss
r8617 r8700 285 285 suggestAlternative: "destination:backward"; 286 286 } 287 288 /* see #11389 */ 289 way["maxspeed:forward"=*"maxspeed:backward"][!maxspeed] { 290 throwWarning: tr("Same value of {0} and {1}", "{0.key}", "{1.key}"); 291 suggestAlternative: "maxspeed"; 292 fixChangeKey: "maxspeed:forward=>maxspeed"; 293 fixRemove: "maxspeed:backward"; 294 } 295 way["maxspeed:forward"=*maxspeed]["maxspeed:backward"=*maxspeed][maxspeed] { 296 throwWarning: tr("Same value of {0}, {1} and {2}", "{0.key}", "{1.key}", "{2.key}"); 297 set AllSameMaxspeed; 298 suggestAlternative: "maxspeed"; 299 fixRemove: "maxspeed:forward"; 300 fixRemove: "maxspeed:backward"; 301 } 302 way["maxspeed:forward"]["maxspeed:backward"][maxspeed]!.AllSameMaxspeed { 303 throwWarning: tr("{0} and {1} together with {2} and conflicting values", "{0.key}", "{1.key}", "{2.key}"); 304 } 305 way["maxspeed:forward"][maxspeed][!"maxspeed:backward"], 306 way["maxspeed:backward"][maxspeed][!"maxspeed:forward"] { 307 throwWarning: tr("{0} together with {1}", "{0.key}", "{1.key}"); 308 } -
trunk/data/validator/numeric.mapcss
r7998 r8700 81 81 assertNoMatch: "way maxwidth=7 ft"; 82 82 } 83 84 way[maxspeed][maxspeed !~ /^(signals|none|unposted|unknown|variable|walk|[1-9][0-9]*( [a-z]+)?|[A-Z][A-Z]:(urban|rural|living_street|motorway))$/] { 83 way[maxspeed][maxspeed !~ /^(signals|none|unposted|variable|walk|[1-9][0-9]*( [a-z]+)?|[A-Z][A-Z]:(urban|rural|living_street|motorway))$/], 84 way[maxspeed:forward][maxspeed:forward !~ /^(signals|none|unposted|variable|walk|[1-9][0-9]*( [a-z]+)?|[A-Z][A-Z]:(urban|rural|living_street|motorway))$/], 85 way[maxspeed:backward][maxspeed:backward !~ /^(signals|none|unposted|variable|walk|[1-9][0-9]*( [a-z]+)?|[A-Z][A-Z]:(urban|rural|living_street|motorway))$/] { 85 86 throwWarning: tr("unusual {0} format", "maxspeed"); 86 87 assertMatch: "way maxspeed=something";
Note:
See TracChangeset
for help on using the changeset viewer.