hdoc-tools 0.17.18 → 0.17.19
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 +1 -1
- package/package.json +1 -1
package/hdoc-validate.js
CHANGED
@@ -268,7 +268,7 @@
|
|
268
268
|
const checkRedirects = async function (source_path) {
|
269
269
|
let errors = [];
|
270
270
|
for (const key in redirects) {
|
271
|
-
if (redirects.hasOwnProperty(key)) {
|
271
|
+
if (redirects.hasOwnProperty(key) && redirects[key].location) {
|
272
272
|
let redir_locations = [
|
273
273
|
path.join(source_path, redirects[key].location + '.md'),
|
274
274
|
path.join(source_path, redirects[key].location, 'index.md'),
|