This commit is contained in:
Kate 2026-06-13 05:48:59 +02:00 committed by GitHub
commit c4e44c75f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,8 +35,9 @@ interface IURLGenerator {
*
* @since 25.0.0
* @since 29.0.0 changed to match localhost and hostnames with ports
* @since 31.0.0 changed to match markdown embedded links with parenthesis
*/
public const URL_REGEX_NO_MODIFIERS = '(\s|\n|^)(https?:\/\/)([-A-Z0-9+_.]+(?::[0-9]+)?(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\s|\n|$)';
public const URL_REGEX_NO_MODIFIERS = '(\s|\n|\(|^)(https?:\/\/)([-A-Z0-9+_.]+(?::[0-9]+)?(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\s|\n|\)|$)';
/**
* Returns the URL for a route