mirror of
https://github.com/HabitRPG/habitica.git
synced 2026-04-22 11:28:25 -05:00
Merge branch 'sabrecat/username-display' into sabrecat/usernames-master
This commit is contained in:
@@ -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>`;
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user