Edit: Fixed typos, added alt text.

  • grue@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    6 days ago

    Just truncate it at the first punctuation mark (or space if they try to game it by removing colons and hyphens).

    • Admiral Patrick@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      6 days ago

      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.