summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-09-29 11:13:18 +0200
committerJoas Schilling <coding@schilljs.com>2022-09-29 11:29:23 +0200
commit474dcf05fdda40a00fca4744133b25b5e5fd8959 (patch)
tree53cf8a544f712d6f8573a36a37c10c36fd79fa5a /core/src
parenta880f791d13702b69c19705f9d06eabb02a81f37 (diff)
downloadnextcloud-server-474dcf05fdda40a00fca4744133b25b5e5fd8959.tar.gz
nextcloud-server-474dcf05fdda40a00fca4744133b25b5e5fd8959.zip
Only match http(s) URLs for references
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/src')
-rw-r--r--core/src/OCP/comments.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/OCP/comments.js b/core/src/OCP/comments.js
index 0b44dd7be81..cd1e8a8fa77 100644
--- a/core/src/OCP/comments.js
+++ b/core/src/OCP/comments.js
@@ -34,7 +34,7 @@ import $ from 'jquery'
*
* This is a copy of the backend regex in IURLGenerator, make sure to adjust both when changing
*/
-const urlRegex = /(\s|^)(https?:\/\/)?((?:[-A-Z0-9+_]+\.)+[-A-Z]+(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\s|$)/ig
+const urlRegex = /(\s|^)(https?:\/\/)((?:[-A-Z0-9+_]+\.)+[-A-Z]+(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\s|$)/ig
/**
* @param {any} content -