UserName autocomplete issue in stream

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • a.slyzhko
    Member
    • Oct 2023
    • 90

    UserName autocomplete issue in stream

    In our company we have userNames like this:
    1. one letter is first letter of a name
    2. dot
    3. surname
    All in lower case. Like my userName on this forum

    When I start typing @a it shows some userNames that start from letter a, but when I enter dot the autocomplete list becomes hidden and not displayed any more whichever text I enter further.

    I have investigated stream panel code and found this regex is used /(^|\s)@(\w*)$/. But on back-end when mentions are processed /(@[\w@.-]+)/ is used.
    I combined these two and found out that /(^|\s)@([\w.]+)$/ suites our needs.​

    Espo version: 8.3.6
    DB: Mariadb 10.11.8
    System: Ubuntu 22.04
  • yuri
    Member
    • Mar 2014
    • 8440

    #2
    Fix: https://github.com/espocrm/espocrm/c...0c48b3ef7e7cd8
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    Working...