Changeset 16835 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2020-08-03T20:23:46+02:00 (4 years ago)
Author:
simon04
Message:

see #19620 - Tag2Link: update to 2020.8.3

File:
1 edited

Legend:

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

    r16834 r16835  
    5757
    5858    static final ListProperty PREF_SOURCE = new ListProperty("tag2link.source",
    59             Collections.singletonList("resource://META-INF/resources/webjars/tag2link/2020.7.15/index.json"));
     59            Collections.singletonList("resource://META-INF/resources/webjars/tag2link/2020.8.3/index.json"));
    6060
    6161    private Tag2Link() {
     
    112112        }
    113113        // We handle those keys ourselves
    114         Stream.of("image", "url", "website", "wikidata", "wikimedia_commons")
    115                 .forEach(wikidataRules::remove);
     114        wikidataRules.keySet().removeIf(key -> key.matches("^(.+[:_])?website([:_].+)?$")
     115                || key.matches("^(.+[:_])?url([:_].+)?$")
     116                || key.matches("wikimedia_commons|image")
     117                || key.matches("wikipedia(:(?<lang>\\p{Lower}{2,}))?")
     118                || key.matches("(.*:)?wikidata"));
    116119
    117120        final int size = wikidataRules.size();
Note: See TracChangeset for help on using the changeset viewer.