mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-29 15:26:27 +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){
|
_prepare_user_tag_parsing: function(target){
|
||||||
|
|
||||||
//Find all occurences of users tag
|
//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
|
//Get user tag
|
||||||
var userTag = target.innerHTML.match(/@[a-zA-Z0-9.]+/i)[0];
|
var userTag = target.innerHTML.match(/ @[a-zA-Z0-9.]+/i)[0];
|
||||||
var userID = userTag.replace("@", "");
|
var userID = userTag.replace(" @", "");
|
||||||
|
|
||||||
target.innerHTML = target.innerHTML.replace(userTag, "<userTag>"+userID+"</userTag>");
|
target.innerHTML = target.innerHTML.replace(userTag, "<userTag>"+userID+"</userTag>");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user