Skip to content
This repository was archived by the owner on May 20, 2024. It is now read-only.

Commit 6cdddc1

Browse files
authored
Fix @mentions regex (#2520)
* Fix username regex * Add changelog
1 parent 73ba037 commit 6cdddc1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ Please document your changes in this format:
2121
```
2222

2323
## [Unreleased]
24+
### Fixed
25+
- fix username pattern matching @nicksellen #2520
2426

2527
## [9.8.0] - 2022-03-23
2628
### Added

src/utils/components/markdownRenderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ if (process.env.KARROT.BACKEND) {
2626
}
2727

2828
const mentions = RegexPlugin(
29-
/@(\w+)/,
29+
/@([a-zA-Z0-9_\-.]+)/, // needs to match backend
3030
(match, utils, env) => {
3131
if (!env.users) return match[0]
3232
const username = match[1]

0 commit comments

Comments
 (0)