fix(usernames): various

Partial fixage for autocomplete @ing
Don't add username to chat message if user is unverified
Fix flying pets
Fix console error about avatar intro
This commit is contained in:
Sabe Jones
2018-11-06 19:55:06 -06:00
parent 2dadd74097
commit 38efe83cc7
5 changed files with 8 additions and 12 deletions

View File

@@ -292,7 +292,7 @@ export default {
this.$emit('show-member-modal', memberId);
},
atHighlight (text) {
return text.replace(new RegExp(/@[\w-]+/g), match => {
return text.replace(new RegExp(/(?!\b)@[\w-]+/g), match => {
return `<span class="at-highlight">${match}</span>`;
});
},