Skip to content

Commit

Permalink
Merge pull request #6754 from openstreetmap/fix-generic-brands
Browse files Browse the repository at this point in the history
Fix generic name validation for known brands
  • Loading branch information
quincylvania authored Aug 15, 2019
2 parents c4a469e + 61f43df commit 6fd4b23
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/validations/generic_name.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ export function validationGenericName() {
function isGenericName(entity) {
var name = entity.tags.name;
if (!name) return false;
// a generic name is okay if it's a known brand or entity
if (entity.hasWikidata()) return false;
name = name.toLowerCase();

var i, key, val;
Expand Down Expand Up @@ -97,4 +99,4 @@ export function validationGenericName() {
validation.type = type;

return validation;
}
}

0 comments on commit 6fd4b23

Please sign in to comment.