Skip to content
Snippets Groups Projects
Commit e3e81f4d authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[fix] parse hashtag only if space or newline just before (avoid to parse URI)

parent 23ca040e
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,7 @@ angular.module('cesium.es.http.services', ['ngResource', 'ngApi', 'cesium.servic ...@@ -15,7 +15,7 @@ angular.module('cesium.es.http.services', ['ngResource', 'ngApi', 'cesium.servic
}, },
regexp = { regexp = {
IMAGE_SRC: exact('data:([A-Za-z//]+);base64,(.+)'), IMAGE_SRC: exact('data:([A-Za-z//]+);base64,(.+)'),
HASH_TAG: match('#([\\wḡĞǦğàáâãäåçèéêëìíîïðòóôõöùúûüýÿ]+)'), HASH_TAG: match('(?:^|[\t\n\r\s ])#([\\wḡĞǦğàáâãäåçèéêëìíîïðòóôõöùúûüýÿ]+)'),
USER_TAG: match('(?:^|[\t\n\r\s ])@('+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) ES_USER_API_ENDPOINT: exact(constants.ES_USER_API_ENDPOINT)
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment