From a91da2275b430427273689575bc49e5665589f3e Mon Sep 17 00:00:00 2001 From: Jugurtha Bouhadoun Date: Thu, 30 May 2024 15:24:10 +0200 Subject: [PATCH] remove space for single letter suffixes --- lib/ban.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/ban.js b/lib/ban.js index 291fee822..5e64da578 100644 --- a/lib/ban.js +++ b/lib/ban.js @@ -7,6 +7,10 @@ export function getNumeroComplet({numero, suffixe}) { return `${numero}-${suffixeTrim || ''}` } + if (suffixeTrim && suffixeTrim.length === 1) { + return `${numero}${suffixeTrim}` + } + return `${numero} ${suffixeTrim || ''}` }