Modify

Opened 4 years ago

Closed 3 years ago

Last modified 3 years ago

#9782 closed defect (fixed)

Display key name when using regex

Reported by: naoliv Owned by: team
Priority: normal Milestone: 15.04
Component: Core validator Version:
Keywords: mapcss Cc: lists@…

Description

When using something like this (to catch objects that have *_name but not a name):

*[/.+_name/][!name] {
        throwWarning: tr("has {0} but not {1}", "{0.key}", "{1.key}");
}

I only see has .+name= but not name as the output.
Changing {0.key} to {0.tag} has the same effect.

Am I missing something or JOSM doesn't support this?

Attachments (0)

Change History (5)

comment:1 Changed 4 years ago by Don-vip

Keywords: mapcss added

comment:2 Changed 4 years ago by Aun Johnsen <lists@…>

Cc: lists@… added

comment:3 Changed 4 years ago by Don-vip

#10859 might be the same problem.

comment:4 Changed 3 years ago by simon04

Resolution: fixed
Status: newclosed

In 8266/josm:

fix #9782 fix #10859 - MapCSS validator: evaluate real key and value for KeyConditions

comment:5 Changed 3 years ago by simon04

Milestone: 15.04

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.