Defect #34894
closed
User link using @ not working at the end of line
Added by Dmitry Makurin about 5 years ago.
Updated about 5 years ago.
Description
Redmine fails to parse mention like @jsmith. (with dot at the end)
At source:trunk/app/helpers/application_helper.rb#L1286 regex extracts full line with all extra sybmols like _-@. and thus can't fide a user with that login.
It only affects separator @, user:jsmith. or Thomas Lecavelier. works fine.
Small patch with fix and test in attachment.
Files
- Assignee set to Marius BĂLTEANU
- Status changed from New to Confirmed
- Target version set to 4.1.3
- Affected version set to 4.1.0
Marius BALTEANU wrote:
we don't need a new test for this case, it's enough to add this case at the existing test.
Just wanted to show the difference between other regexs in same situation. Initially only @ was a problem.
- Subject changed from User mention at the end of line to user link using @ not working at the end of line
- Category set to Text formatting
- Status changed from Confirmed to Resolved
- Assignee set to Go MAEDA
- Resolution set to Fixed
Committed the fix. Thank you all for reporting and fixing the issue.
- Status changed from Resolved to Closed
- Subject changed from user link using @ not working at the end of line to User link using @ not working at the end of line
- Related to Feature #13919: Mention user on issues and wiki pages using @user with autocomplete added
Also available in: Atom
PDF