Make sure a name is either primary or alternate (can't be both)

This commit is contained in:
Bryan Housel
2021-03-11 17:46:09 -05:00
parent 2e9c463837
commit 98a622f41a
+1
View File
@@ -298,6 +298,7 @@ function gatherNames(tags) {
foundSemi = true;
} else {
primary.add(osmvalue);
alternate.delete(osmvalue);
}
} else if (!primary.has(osmvalue) && isNamelike(osmkey, 'alternate')) {
if (/;/.test(osmvalue)) {