better handling of /cc on Linux
This commit is contained in:
parent
595d751449
commit
3238b06c27
3 changed files with 7 additions and 5 deletions
|
@ -643,7 +643,7 @@ function(jQuery, Paths, URI, HostApp, Cache) {
|
|||
var text = node.innerHTML;
|
||||
var mentions_in_text = [];
|
||||
|
||||
var res = text.match(/(\^[\w:/.]+(?:[\w]))/ig);
|
||||
var res = text.match(/(\^[\w:/.-]+(?:[\w]))/ig);
|
||||
|
||||
if (res) {
|
||||
for (var i = 0; i < res.length; i++) {
|
||||
|
@ -740,7 +740,7 @@ function(jQuery, Paths, URI, HostApp, Cache) {
|
|||
})
|
||||
}
|
||||
|
||||
var res = text.match(/(\^[\w:/]+\.[\w:/.]+(?:[\w]))/ig);
|
||||
var res = text.match(/(\^[\w:/]+\.[\w:/.-]+(?:[\w]))/ig);
|
||||
|
||||
if (res) {
|
||||
for (var i = 0; i < res.length; i++) {
|
||||
|
@ -868,7 +868,7 @@ function(jQuery, Paths, URI, HostApp, Cache) {
|
|||
if(mentions.length > 0) string += "\n\n/cc ";
|
||||
for (var i = 0; i < mentions.length; i++) {
|
||||
var e = mentions[i].entity.replace("https://", "");
|
||||
if(string.indexOf(e) == -1) string += "^" + e + " ";
|
||||
if(string.indexOf(e) == -1) string += "^" + e;
|
||||
}
|
||||
|
||||
HostApp.openNewMessageWidow(entity, status_id, string, is_private);
|
||||
|
|
Reference in a new issue