From 81416226a3cc5c5e67a0b0a5260ddce35ea92a66 Mon Sep 17 00:00:00 2001 From: octavioamu Date: Mon, 17 Feb 2020 19:24:26 -0300 Subject: [PATCH] fix browser regex support --- app/assets/v2/js/activity.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/v2/js/activity.js b/app/assets/v2/js/activity.js index 85ec5ae9160..ca8e39967c8 100644 --- a/app/assets/v2/js/activity.js +++ b/app/assets/v2/js/activity.js @@ -3,7 +3,7 @@ $(document).ready(function() { var linkify = function(new_text) { - new_text = new_text.replace(/(?#$1'); + new_text = new_text.replace(/(?:^|\s)#([a-zA-Z\d-]+)/g, ' #$1'); new_text = new_text.replace(/\B@(\w*)/g, ' @$1'); return new_text; };