From 8e8d26d690aa398fe0e4b05092371e1aca6d4675 Mon Sep 17 00:00:00 2001 From: Jonas Date: Wed, 6 Mar 2024 11:39:36 +0100 Subject: chore(IURLGenerater): Document changes to `URL_REGEX_NO_MODIFIERS` Signed-off-by: Jonas --- lib/public/IURLGenerator.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/public/IURLGenerator.php b/lib/public/IURLGenerator.php index 0c7dc070778..396867e22b3 100644 --- a/lib/public/IURLGenerator.php +++ b/lib/public/IURLGenerator.php @@ -41,6 +41,7 @@ interface IURLGenerator { * This is a copy of the frontend regex in core/src/OCP/comments.js, make sure to adjust both when changing * * @since 25.0.0 + * @since 29.0.0 changed to match localhost and hostnames with ports */ public const URL_REGEX = '/' . self::URL_REGEX_NO_MODIFIERS . '/mi'; @@ -50,6 +51,7 @@ interface IURLGenerator { * This is a copy of the frontend regex in core/src/OCP/comments.js, make sure to adjust both when changing * * @since 25.0.0 + * @since 29.0.0 changed to match localhost and hostnames with ports */ public const URL_REGEX_NO_MODIFIERS = '(\s|\n|^)(https?:\/\/)([-A-Z0-9+_.]+(?::[0-9]+)?(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\s|\n|$)'; -- cgit v1.2.3