Skip to content

Commit

Permalink
Fixed URL with fragment.
Browse files Browse the repository at this point in the history
  • Loading branch information
sevvlor committed Jun 3, 2017
1 parent 3716481 commit 96ea067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/View/Helper/TextHelper.php
Expand Up @@ -123,7 +123,7 @@ public function autoLinkUrls($text, array $options = [])
(?<left>[\[<(]) # left paren,brace
(?>
# Lax match URL
(?<url>(?:https?|ftp|nntp):\/\/[\p{L}0-9.\-_:]+(?:[\/?][\p{L}0-9.\-_:\/?=&>\[\]\(\#@\+~!;,%]+[^-_:?>\[\]\(\@\+~!;<,.%\s])?)
(?<url>(?:https?|ftp|nntp):\/\/[\p{L}0-9.\-_:]+(?:[\/?][\p{L}0-9.\-_:\/?=&>\[\]\(\)\#\@\+~!;,%]+[^-_:?>\[\(\@\+~!;<,.%\s])?)
(?<right>[\])>]) # right paren,brace
)
)
Expand Down

0 comments on commit 96ea067

Please sign in to comment.