Changeset 16835 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2020-08-03T20:23:46+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Tag2Link.java
r16834 r16835 57 57 58 58 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")); 60 60 61 61 private Tag2Link() { … … 112 112 } 113 113 // 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")); 116 119 117 120 final int size = wikidataRules.size();
Note:
See TracChangeset
for help on using the changeset viewer.