fix(chat): match hyphen in @name regex

This commit is contained in:
Sabe Jones
2018-10-19 17:44:18 -05:00
parent 4f4bb52360
commit 3cc49f6637

View File

@@ -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>`;
});
},