Fixed detection of mentions terminating with a dot.

For example `This is a test, ^jeena.net.`
This commit is contained in:
ePirat 2013-01-15 00:48:58 +01:00
parent 035390dbc3
commit f499bc79df

View file

@ -644,8 +644,7 @@ function(jQuery, Paths, URI, HostApp, Cache) {
var text = node.innerHTML;
var mentions_in_text = [];
var res = text.match(/(\^[\w:/.]+)/ig);
var res = text.match(/(\^[\w:/]+\.[\w:/.]+(?:[\w]))/ig);
if (res) {
for (var i = 0; i < res.length; i++) {
var name = res[i];
@ -731,8 +730,8 @@ function(jQuery, Paths, URI, HostApp, Cache) {
})
}
var res = text.match(/(\^[\w:/]+\.[\w:/.]+)/ig);
var res = text.match(/(\^[\w:/]+\.[\w:/.]+(?:[\w]))/ig);
if (res) {
for (var i = 0; i < res.length; i++) {
var e = res[i].substring(1);