Commit 2df0dbe7 authored by jwilson3's avatar jwilson3 Committed by pifagor
Browse files

Issue #3038104 by jwilson3, cm0dit, pifagor: Support hashbang (#!) in URLs

parent 610ff54b
......@@ -1623,7 +1623,7 @@ function link_url_type($text) {
$directories = "(?:\/[a-z0-9" . $link_ichars . "_\-\.~+%=&,$'#!():;*@\[\]]*)*";
// Yes, four backslashes == a single backslash.
$query = "(?:\/?\?([?a-zA-Z0-9" . $link_ichars . "+_|\-\.~\/\\\\%=&,$'!():;*@\[\]{} ]*))";
$anchor = "(?:#[a-zA-Z0-9" . $link_ichars . "_\-\.~+%=&,$'():;*@\[\]\/\?]*)";
$anchor = "(?:#[a-zA-Z0-9" . $link_ichars . "_\-\.~+%=&,$'():;*@\[\]\/\?!]*)";
// The rest of the path for a standard URL.
// @codingStandardsIgnoreLine
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment