Allow href=""

It means going to index
This commit is contained in:
Cat /dev/Nulo 2022-11-25 19:05:45 -03:00
parent 3eb55ca4dd
commit 1150850fed

View file

@ -8,7 +8,7 @@ const dirPath = argv[2] || ".";
function recurseElement(report, el) {
if (el.name === "a") {
if (el.attribs.href) {
if (el.attribs.href !== undefined) {
if (isHttp(el.attribs.href)) {
report.infos.push(`HTTP/S link: ${getHtml(el)}`);
} else if (isAbsolute(el.attribs.href)) {