copied new regex to parseMentions too

This commit is contained in:
Jeena Paradies 2012-11-20 01:45:00 +01:00
parent 0be142a16c
commit b18c3478ca

View file

@ -249,6 +249,7 @@ function(jQuery, Paths, URI, HostApp, Followings) {
}; };
var mentions = this.parseMentions(content, in_reply_to_status_id, in_reply_to_entity); var mentions = this.parseMentions(content, in_reply_to_status_id, in_reply_to_entity);
if (mentions.length > 0) { if (mentions.length > 0) {
data["mentions"] = mentions; 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) { if (res) {
for (var i = 0; i < res.length; i++) { for (var i = 0; i < res.length; i++) {
@ -381,7 +382,6 @@ function(jQuery, Paths, URI, HostApp, Followings) {
} }
} }
} }
return mentions; return mentions;
} }