From 6ab2a713b50244e516ffa3d35b3c581744ec00fd Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Wed, 2 Aug 2023 07:53:23 -0500 Subject: [PATCH] CLDR-16846 fix bulk import (#3127) - use negative lookbehind in split to preserve slashes in attributes Example: //ldml/dates/timeZoneNames/zone[@type="America/Guyana"]/exemplarCity --- tools/cldr-apps/js/src/esm/cldrBulkConverter.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cldr-apps/js/src/esm/cldrBulkConverter.mjs b/tools/cldr-apps/js/src/esm/cldrBulkConverter.mjs index 5d89535e704..81548e0dd34 100644 --- a/tools/cldr-apps/js/src/esm/cldrBulkConverter.mjs +++ b/tools/cldr-apps/js/src/esm/cldrBulkConverter.mjs @@ -167,7 +167,7 @@ function xlsGenerateXml(locale, wb, xColumn, vColumn) { // now the fun part // //ldml/localeDisplayNames/territories/territory[@type="IO"][@alt="chagos"] - let xpathParts = xpath.split("/").slice(2); + let xpathParts = xpath.split(/(?