hdoc-tools 0.26.0 → 0.26.1

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.
Files changed (2) hide show
  1. package/hdoc-validate.js +4 -2
  2. package/package.json +1 -1
package/hdoc-validate.js CHANGED
@@ -531,8 +531,10 @@ const e = require("express");
531
531
  ( links[i].toLowerCase().includes("docs.hornbill.com") ||
532
532
  links[i].toLowerCase().includes("docs-internal.hornbill.com")
533
533
  ) &&
534
- !links[i].toLowerCase().endsWith(".hornbill.com") &&
535
- !links[i].toLowerCase().endsWith(".hornbill.com/")
534
+ links[i].toLowerCase() !== ("https://docs-internal.hornbill.com/") &&
535
+ links[i].toLowerCase() !== ("https://docs-internal.hornbill.com") &&
536
+ links[i].toLowerCase() !== ("https://docs.hornbill.com/") &&
537
+ links[i].toLowerCase() !== ("https://docs.hornbill.com")
536
538
  ) {
537
539
  const error_message = processErrorMessage(`Hornbill Docs links should not be fully-qualified: ${links[i]}`, markdown_paths.relativePath, markdown_content, links[i]);
538
540
  errors[htmlFile.relativePath].push( error_message );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hdoc-tools",
3
- "version": "0.26.0",
3
+ "version": "0.26.1",
4
4
  "description": "Hornbill HDocBook Development Support Tool",
5
5
  "main": "hdoc.js",
6
6
  "bin": {