I’ve been doing that for ages now: splicing it at : and - and using the first array element. It’s just annoying. That, and having to watch and account for false-positives (e.g. X: Files, Self-Hosted, etc). And some places it makes sense to show the full name, but it often still gets truncated in CSS depending on device width. Plus, some community display names don’t use that format :(
Was trying a different approach this time around, and it clearly didn’t work out lol.
Just truncate it at the first punctuation mark (or space if they try to game it by removing colons and hyphens).
I’ve been doing that for ages now: splicing it at
:
and-
and using the first array element. It’s just annoying. That, and having to watch and account for false-positives (e.g. X: Files, Self-Hosted, etc). And some places it makes sense to show the full name, but it often still gets truncated in CSS depending on device width. Plus, some community display names don’t use that format :(Was trying a different approach this time around, and it clearly didn’t work out lol.