|
|
@ -54,7 +54,7 @@ const PostStatusForm = {
|
|
|
|
const firstchar = this.textAtCaret.charAt(0)
|
|
|
|
const firstchar = this.textAtCaret.charAt(0)
|
|
|
|
if (firstchar === '@') {
|
|
|
|
if (firstchar === '@') {
|
|
|
|
const matchedUsers = filter(this.users, (user) => (String(user.name + user.screen_name)).toUpperCase()
|
|
|
|
const matchedUsers = filter(this.users, (user) => (String(user.name + user.screen_name)).toUpperCase()
|
|
|
|
.match(this.textAtCaret.slice(1).toUpperCase()))
|
|
|
|
.match(this.textAtCaret.slice(1).toUpperCase()))
|
|
|
|
if (matchedUsers.length <= 0) {
|
|
|
|
if (matchedUsers.length <= 0) {
|
|
|
|
return false
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
}
|
|
|
|