#1578 - @username functionality behaves incorrectly
| Identifier | #1578 |
|---|---|
| Issue type | Minor issue (breaks specific functionality) |
| Title | @username functionality behaves incorrectly |
| Status | Completed |
| Handling member | Chris Graham |
| Addon | General / Uncategorised |
| Description | If a username contains a "-" then the sent forum post appears to send the email to another user.
Take for example a user called bugs-gti, the highlighted username in the sent forum post is bugs. So it appears that it matches the bugs user and ignores everything after the hyphen. Please can someone take a look. It is on vwgolfmk1.org.uk Cheers Ade |
| Steps to reproduce | |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments
It reads everything up to the line end, and then does an OR query based on all possibilities against all possible non-word cut points (i.e. any possible parse for a username). It picks the longest username matched.