From 96ea067a46845bd1fe783a654216b826e737faa9 Mon Sep 17 00:00:00 2001 From: Sevvlor Date: Sat, 3 Jun 2017 17:28:52 +0200 Subject: [PATCH] Fixed URL with fragment. --- src/View/Helper/TextHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/View/Helper/TextHelper.php b/src/View/Helper/TextHelper.php index 1852f4c0f91..58dc9375387 100644 --- a/src/View/Helper/TextHelper.php +++ b/src/View/Helper/TextHelper.php @@ -123,7 +123,7 @@ public function autoLinkUrls($text, array $options = []) (?[\[<(]) # left paren,brace (?> # Lax match URL - (?(?:https?|ftp|nntp):\/\/[\p{L}0-9.\-_:]+(?:[\/?][\p{L}0-9.\-_:\/?=&>\[\]\(\#@\+~!;,%]+[^-_:?>\[\]\(\@\+~!;<,.%\s])?) + (?(?:https?|ftp|nntp):\/\/[\p{L}0-9.\-_:]+(?:[\/?][\p{L}0-9.\-_:\/?=&>\[\]\(\)\#\@\+~!;,%]+[^-_:?>\[\(\@\+~!;<,.%\s])?) (?[\])>]) # right paren,brace ) )