nox-validation 1.6.5 → 1.6.6

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/lib/validate.js +2 -2
  2. package/package.json +1 -1
package/lib/validate.js CHANGED
@@ -540,7 +540,7 @@ const validateMetaRules = (
540
540
  node.value,
541
541
  node.key,
542
542
  (path) => {
543
- const newPath = path.replace(/\[0\]\./, `${lang}.`);
543
+ const newPath = path.replace(/\[0\]\./, `.${lang}.`);
544
544
  return newPath;
545
545
  }
546
546
  );
@@ -550,7 +550,7 @@ const validateMetaRules = (
550
550
  });
551
551
 
552
552
  transformedPath = rebuildFullPath(node.value, node.key, (path) =>
553
- path.replace(/\[0\]\./, `${lang}.`)
553
+ path.replace(/\[0\]\./, `.${lang}.`)
554
554
  );
555
555
  }
556
556
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nox-validation",
3
- "version": "1.6.5",
3
+ "version": "1.6.6",
4
4
  "description": "validate dynamic schema",
5
5
  "main": "index.js",
6
6
  "scripts": {