hdoc-tools 0.26.0 → 0.26.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/hdoc-validate.js +4 -6
- package/package.json +1 -1
package/hdoc-validate.js
CHANGED
@@ -527,12 +527,10 @@ const e = require("express");
|
|
527
527
|
continue;
|
528
528
|
}
|
529
529
|
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
)
|
534
|
-
!links[i].toLowerCase().endsWith(".hornbill.com") &&
|
535
|
-
!links[i].toLowerCase().endsWith(".hornbill.com/")
|
530
|
+
console.log(`Debug checking: [${links[i]}]`);
|
531
|
+
if (
|
532
|
+
links[i].toLowerCase().includes("docs.hornbill.com") ||
|
533
|
+
links[i].toLowerCase().includes("docs-internal.hornbill.com")
|
536
534
|
) {
|
537
535
|
const error_message = processErrorMessage(`Hornbill Docs links should not be fully-qualified: ${links[i]}`, markdown_paths.relativePath, markdown_content, links[i]);
|
538
536
|
errors[htmlFile.relativePath].push( error_message );
|