mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-30 21:23:32 +02:00
Fix template.highlightURL
This commit is contained in:
@@ -208,7 +208,7 @@ const template = {
|
|||||||
highlightURL: function highlightURL(str, force)
|
highlightURL: function highlightURL(str, force)
|
||||||
{
|
{
|
||||||
if (force || /^[a-zA-Z]+:\/\//.test(str))
|
if (force || /^[a-zA-Z]+:\/\//.test(str))
|
||||||
return <a highlight="URL" href="#">{str}</a>;
|
return <a highlight="URL" href={str}>{str}</a>;
|
||||||
else
|
else
|
||||||
return str;
|
return str;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user