Fix copy button. (#7618)

This commit is contained in:
Nicolo Maio 2023-07-03 10:22:58 +00:00
parent d2453b5742
commit 1f96924668

View file

@ -1525,7 +1525,7 @@ function format_external_link(url, name, no_html, proto, i18n_key)
return(url)
else
local external_field = url
proto = ternary(((proto) and (proto == 'http')), 'http', 'https')
proto = ternary(((proto) and (proto == 'http' or proto == 'HTTP')), 'http', 'https')
if no_html == false then
if not isEmptyString(url) and not string.find(url, '*') then