aboutsummaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2022-09-30 08:07:47 +0200
committerGitHub <noreply@github.com>2022-09-30 08:07:47 +0200
commit27ce4bd1a41c11ab4ffe076df50a5f42402c8cf2 (patch)
treed388489d765e430fc71e98a3cd18f672df79bf22 /core/src
parent87d4c3d84e97ada31f447b764be2fef612ad4085 (diff)
parentf976d372fef774e1011f92930b4a48b4b6ce270e (diff)
downloadnextcloud-server-27ce4bd1a41c11ab4ffe076df50a5f42402c8cf2.tar.gz
nextcloud-server-27ce4bd1a41c11ab4ffe076df50a5f42402c8cf2.zip
Merge pull request #34322 from nextcloud/bugfix/noid/limit-url-matching-to-https
Only match http(s) URLs for references
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 -