Skip to content

Commit

Permalink
remove space for single letter suffixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jugurtha Bouhadoun committed Jun 4, 2024
1 parent fba1e44 commit a91da22
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/ban.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ export function getNumeroComplet({numero, suffixe}) {
return `${numero}-${suffixeTrim || ''}`
}

if (suffixeTrim && suffixeTrim.length === 1) {
return `${numero}${suffixeTrim}`
}

return `${numero} ${suffixeTrim || ''}`
}

Expand Down

0 comments on commit a91da22

Please sign in to comment.