mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-12-26 10:58:49 +00:00
Fix issue with tagging and emails
This commit is contained in:
parent
5e29916f97
commit
7a3387b550
@ -37,11 +37,11 @@ ComunicWeb.components.textParser = {
|
||||
_prepare_user_tag_parsing: function(target){
|
||||
|
||||
//Find all occurences of users tag
|
||||
while(target.innerHTML.match(/@[a-zA-Z0-9.]+/i)){
|
||||
while(target.innerHTML.match(/ @[a-zA-Z0-9.]+/i)){
|
||||
|
||||
//Get user tag
|
||||
var userTag = target.innerHTML.match(/@[a-zA-Z0-9.]+/i)[0];
|
||||
var userID = userTag.replace("@", "");
|
||||
var userTag = target.innerHTML.match(/ @[a-zA-Z0-9.]+/i)[0];
|
||||
var userID = userTag.replace(" @", "");
|
||||
|
||||
target.innerHTML = target.innerHTML.replace(userTag, "<userTag>"+userID+"</userTag>");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user