mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 18:42:27 +01:00
fix util.highlightURL to use the unnamed anchor for link href values to prevent
:pageinfo links from being loaded in the MOW
This commit is contained in:
@@ -178,7 +178,7 @@ vimperator.util = { //{{{
|
||||
highlightURL: function (str, force)
|
||||
{
|
||||
if (force || /^[a-zA-Z]+:\/\//.test(str))
|
||||
return "<a class='hl-URL' href='" + str + "'>" + vimperator.util.escapeHTML(str) + "</a>";
|
||||
return "<a class='hl-URL' href='#'>" + vimperator.util.escapeHTML(str) + "</a>";
|
||||
else
|
||||
return str;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user