#18057 closed enhancement (fixed)
[PATCH] There should be a method to get keys by regex for comparison functions
Reported by: | taylor.smock | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 19.08 |
Component: | Core mappaint | Version: | |
Keywords: | Cc: |
Description
Example usage:
*[count(tag_regex("ref") > 1] { throwError: tr("There is more than one ref"); }
Attachments (3)
Change History (11)
by , 5 years ago
Attachment: | 18057.patch added |
---|
by , 5 years ago
Attachment: | 18057.2.patch added |
---|
Move some test logic to a separate (private) function in order to test flags
comment:1 by , 5 years ago
Summary: | [WIP PATCH] There should be a method to get keys by regex for comparison functions → [PATCH] There should be a method to get keys by regex for comparison functions |
---|
comment:2 by , 5 years ago
Component: | Core → Core mappaint |
---|
comment:3 by , 5 years ago
Milestone: | → 19.08 |
---|
comment:5 by , 5 years ago
Replying to Don-vip:
your patch doesn't apply, are you up to date?
It applied cleanly on a separate JOSM source instance for me (I used patch -p0 < 18057.2.patch
). I've updated the patch just in case.
The only other thing that _might_ have made a difference is that there was a bit more in the "original" diff -- I had a separate function for uniq_list
, which I was going to file a bug and patch for after this was closed.
Add
tag_regex
method and test, reduce duplicated code for parsing flags (addsparse_regex_flags
function, currently private)