hdoc-tools 0.9.26 → 0.9.27

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 +5 -4
  2. package/package.json +1 -1
package/hdoc-validate.js CHANGED
@@ -105,13 +105,14 @@
105
105
  }
106
106
 
107
107
  if (file_exists) {
108
- const true_file = trueCasePathSync(file_name);
109
- if (true_file !== file_name) {
110
- nav_errors.push(`Navigation path [${key}] for filename [${file_name}] does not match filename case [${true_file}].`);
108
+ const true_file = trueCasePathSync(file_name).replace(source_path, '').replaceAll('\\', '/');
109
+ const relative_file = file_name.replace(source_path, '').replaceAll('\\', '/');
110
+ if (true_file !== relative_file) {
111
+ nav_errors.push(`Navigation path [${key}] for filename [${relative_file}] does not match filename case [${true_file}].`);
111
112
  }
112
113
  }
113
114
 
114
- // Validate path
115
+ // Validate path spellings
115
116
  const paths = key.split('/');
116
117
  for (let i = 0; i < paths.length; i++) {
117
118
  const path_words = paths[i].split('-');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hdoc-tools",
3
- "version": "0.9.26",
3
+ "version": "0.9.27",
4
4
  "description": "Hornbill HDocBook Development Support Tool",
5
5
  "main": "hdoc.js",
6
6
  "bin": {