From fa1edc86a1bae931f9dc73cd6f1838f8b9b2f59c Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Wed, 23 Jan 2019 09:57:43 -0500 Subject: [PATCH] Another place where we should delimit name suggestion on en-dash see 20bcfc573 --- modules/ui/preset_list.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/ui/preset_list.js b/modules/ui/preset_list.js index a752ffb04..7998ede50 100644 --- a/modules/ui/preset_list.js +++ b/modules/ui/preset_list.js @@ -364,8 +364,9 @@ export function uiPresetList(context) { .append('div') .attr('class', 'label-inner'); + // NOTE: split/join on en-dash, not a hypen (to avoid conflict with fr - nl names in Brussels etc) label.selectAll('.namepart') - .data(preset.name().split(' - ')) + .data(preset.name().split(' – ')) .enter() .append('div') .attr('class', 'namepart')