From 98a622f41a2f4212c6b5981e8fae0cd24dc85a28 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Thu, 11 Mar 2021 17:46:09 -0500 Subject: [PATCH] Make sure a name is either primary or alternate (can't be both) --- modules/services/nsi.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/services/nsi.js b/modules/services/nsi.js index 21bad1081..afe223e87 100644 --- a/modules/services/nsi.js +++ b/modules/services/nsi.js @@ -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)) {