mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-04 13:09:41 +00:00
fix(chat): match hyphen in @name regex
This commit is contained in:
parent
4f4bb52360
commit
3cc49f6637
1 changed files with 1 additions and 1 deletions
|
|
@ -292,7 +292,7 @@ export default {
|
|||
this.$emit('show-member-modal', memberId);
|
||||
},
|
||||
atHighlight (text) {
|
||||
return text.replace(new RegExp(/@\w+\b/g), match => {
|
||||
return text.replace(new RegExp(/@[\w-]+/g), match => {
|
||||
return `<span class="at-highlight">${match}</span>`;
|
||||
});
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue