From 18862db660e07c175aea5681e9f4e58eba2e4c3c Mon Sep 17 00:00:00 2001 From: Cyrille Bollu Date: Fri, 26 Jul 2019 15:35:20 +0200 Subject: Uses hashtag-regex to rewrite hashtag's href rather than linkifyjs. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reason: linkifyjs doesn't support non-latin characters. So "#Framasphère" is identified as "#Framasph" for example. Signed-off-by: Cyrille Bollu --- package.json | 1 + src/components/TimelinePost.vue | 13 ++++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 69f301da..742b43ea 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ }, "dependencies": { "vue-masonry-css": "^1.0.3", + "hashtag-regex": "^2.0.0", "linkifyjs": "^2.1.8", "nextcloud-axios": "^0.2.0", "nextcloud-vue": "^0.11.4", diff --git a/src/components/TimelinePost.vue b/src/components/TimelinePost.vue index c97546bc..5a9079be 100644 --- a/src/components/TimelinePost.vue +++ b/src/components/TimelinePost.vue @@ -52,16 +52,16 @@