copied new regex to parseMentions too
This commit is contained in:
parent
0be142a16c
commit
b18c3478ca
1 changed files with 2 additions and 2 deletions
|
@ -249,6 +249,7 @@ function(jQuery, Paths, URI, HostApp, Followings) {
|
|||
};
|
||||
|
||||
var mentions = this.parseMentions(content, in_reply_to_status_id, in_reply_to_entity);
|
||||
|
||||
if (mentions.length > 0) {
|
||||
data["mentions"] = mentions;
|
||||
}
|
||||
|
@ -368,7 +369,7 @@ function(jQuery, Paths, URI, HostApp, Followings) {
|
|||
})
|
||||
}
|
||||
|
||||
var res = text.match(/(\^\S+)/ig);
|
||||
var res = text.match(/(\^[\w:/.]+)/ig);
|
||||
|
||||
if (res) {
|
||||
for (var i = 0; i < res.length; i++) {
|
||||
|
@ -381,7 +382,6 @@ function(jQuery, Paths, URI, HostApp, Followings) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
return mentions;
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue