Fix space issue

This commit is contained in:
Pierre 2018-05-14 17:04:21 +02:00
parent 701d070efd
commit 92c7c80fbc

View File

@ -49,7 +49,7 @@ ComunicWeb.components.textParser = {
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>");
} }