Changeset 16264 in josm for trunk/src/org


Ignore:
Timestamp:
2020-04-11T20:05:51+02:00 (5 years ago)
Author:
simon04
Message:

see #18164 - OverpassTurboQueryWizard: fix "newer" statements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/OverpassTurboQueryWizard.java

    r16262 r16264  
    112112            final String key = ((SearchCompiler.KeyValue) match).getKey();
    113113            final String value = ((SearchCompiler.KeyValue) match).getValue();
     114            if ("newer".equals(key)) {
     115                return "(newer:" + quote("{{date:" + value + "}}") + ")";
     116            }
    114117            return "[~" + quote(key) + "~" + quote(value) + "]";
    115118        } else if (match instanceof SearchCompiler.ExactKeyValue) {
Note: See TracChangeset for help on using the changeset viewer.