nox-validation 1.6.7 → 1.6.9

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/lib/helpers.js CHANGED
@@ -1599,7 +1599,9 @@ const rebuildFullPath = (nodePath, fullPath, modifierFn) => {
1599
1599
  typeof modifierFn === "function" ? modifierFn(nodePath) : nodePath;
1600
1600
 
1601
1601
  // 3. Rebuild final full path
1602
- return `${parentPath}.${modifiedNodePath}`.replace(/\.+/g, ".");
1602
+ return parentPath?.trim() !== ""
1603
+ ? `${parentPath}.${modifiedNodePath}`.replace(/\.+/g, ".")
1604
+ : `${modifiedNodePath}`.replace(/\.+/g, ".");
1603
1605
  };
1604
1606
 
1605
1607
  module.exports = {