How to deal with usernames that have spaces

Created on 14 October 2019, about 5 years ago
Updated 28 February 2023, over 1 year ago

Iโ€™m wondering how mentions works if the username being @mentioned has spaces in it.

I donโ€™t like that drupal allows spaces by default but so it is and some of my users have spaces in their username.

Thoughts?

๐Ÿ› Bug report
Status

Needs review

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States destinationsound

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • First commit to issue fork.
  • @andileco opened merge request.
  • First commit to issue fork.
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States robpowell Boston

    How about we go with matching anything between the prefix and suffix? This change in essence makes the pattern (?:\[~)([^\]]+)\].

    This will match periods, hyphens and spaces.

  • Status changed to Needs review over 1 year ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States robpowell Boston
Production build 0.71.5 2024