hdoc-tools 0.60.0 → 0.60.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.
- package/hdoc-validate.js +3 -1
- package/package.json +1 -1
package/hdoc-validate.js
CHANGED
|
@@ -561,8 +561,10 @@ const { error } = require("node:console");
|
|
|
561
561
|
);
|
|
562
562
|
|
|
563
563
|
// Skip if it's the auto-generated edit url, as these could be part of a private repo which would return a 404
|
|
564
|
+
// publicSource must be truthy, not just defined - an empty string makes
|
|
565
|
+
// get_github_api_path return "" which has no edit_path
|
|
564
566
|
if (
|
|
565
|
-
hdocbook_config.publicSource
|
|
567
|
+
hdocbook_config.publicSource &&
|
|
566
568
|
links[i] ===
|
|
567
569
|
hdoc
|
|
568
570
|
.get_github_api_path(
|