Fixed detection of mentions terminating with a dot.
For example `This is a test, ^jeena.net.`
This commit is contained in:
parent
035390dbc3
commit
f499bc79df
1 changed files with 3 additions and 4 deletions
|
@ -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,7 +730,7 @@ 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++) {
|
||||
|
|
Reference in a new issue