mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
Update variable name
This commit is contained in:
@@ -10,13 +10,13 @@ export function validationMissingTag(context) {
|
||||
var type = 'missing_tag';
|
||||
|
||||
function hasDescriptiveTags(entity, graph) {
|
||||
var onlyDescriptiveKeys = ['description', 'name', 'note', 'start_date'];
|
||||
var onlyAttributeKeys = ['description', 'name', 'note', 'start_date'];
|
||||
var entityDescriptiveKeys = Object.keys(entity.tags)
|
||||
.filter(function(k) {
|
||||
if (k === 'area' || !osmIsInterestingTag(k)) return false;
|
||||
|
||||
return !onlyDescriptiveKeys.some(function(desciptiveKey) {
|
||||
return k === desciptiveKey || k.indexOf(desciptiveKey + ':') === 0;
|
||||
return !onlyAttributeKeys.some(function(attributeKey) {
|
||||
return k === attributeKey || k.indexOf(attributeKey + ':') === 0;
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user