From 5ec939bfb5f263f67e71a11ce60adb9826da6fa0 Mon Sep 17 00:00:00 2001
From: blavenie <benoit.lavenier@e-is.pro>
Date: Tue, 8 Aug 2017 09:45:40 +0200
Subject: [PATCH] fix user tag regexp

---
 www/plugins/es/js/services/http-services.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/plugins/es/js/services/http-services.js b/www/plugins/es/js/services/http-services.js
index 7f7569bdd..1a1a1f496 100644
--- a/www/plugins/es/js/services/http-services.js
+++ b/www/plugins/es/js/services/http-services.js
@@ -16,7 +16,7 @@ angular.module('cesium.es.http.services', ['ngResource', 'ngApi', 'cesium.servic
       regexp = {
         IMAGE_SRC: exact('data:([A-Za-z//]+);base64,(.+)'),
         HASH_TAG: match('#([\\wḡĞǦğàáâãäåçèéêëìíîïðòóôõöùúûüýÿ]+)'),
-        USER_TAG: match('@('+BMA.constants.regexp.USER_ID+')'),
+        USER_TAG: match('(?:^|[\t\n\r\s ])@('+BMA.constants.regexp.USER_ID+')'),
         ES_USER_API_ENDPOINT: exact(constants.ES_USER_API_ENDPOINT)
       };
 
-- 
GitLab