chore(IURLGenerater): Document changes to `URL_REGEX_NO_MODIFIERS`

Signed-off-by: Jonas <jonas@freesources.org>
This commit is contained in:
Jonas 2024-03-06 11:39:36 +01:00
parent 782f808228
commit 8e8d26d690
No known key found for this signature in database
GPG Key ID: 5262E7FF491049FE
1 changed files with 2 additions and 0 deletions

View File

@ -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|$)';