Allow href=""
It means going to index
This commit is contained in:
parent
3eb55ca4dd
commit
1150850fed
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue