Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
drupal.org
link
Commits
2df0dbe7
Commit
2df0dbe7
authored
Sep 04, 2019
by
jwilson3
Committed by
pifagor
Sep 04, 2019
Browse files
Issue #3038104 by jwilson3, cm0dit, pifagor: Support hashbang (#!) in URLs
parent
610ff54b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
link.module
link.module
+1
-1
No files found.
link.module
View file @
2df0dbe7
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment