mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 10:40:40 -04:00
Merge d23ee9ac9c into d02155784b
This commit is contained in:
commit
c4e44c75f9
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue