content: exclude links to ip addresses
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/pr/woodpecker Pipeline was successful Details

There is no good reason to link to an ip directly.
OFF0 2 years ago
parent 9b11459f2d
commit a59b3a84d2
Signed by: offbyn
GPG Key ID: 94A2F643C51F37FA

@ -35,6 +35,9 @@ function isValidURL(url) {
if (lastDot < 1) {
return false;
}
if (url.hostname.slice(lastDot + 1).match(/^[\d]+$/)) {
return false;
}
if (url.hostname.slice(lastDot) === '.local') {
return false;
}

Loading…
Cancel
Save