nox-validation 1.2.5 → 1.2.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.
- package/lib/helpers.js +1 -1
- package/package.json +1 -1
package/lib/helpers.js
CHANGED
|
@@ -1169,7 +1169,7 @@ const getDefaultValues = (tree) => {
|
|
|
1169
1169
|
};
|
|
1170
1170
|
|
|
1171
1171
|
const extractRelationalParents=(path)=> {
|
|
1172
|
-
const match = path?.match(/^(
|
|
1172
|
+
const match = path?.match(/^([^.\[\]]+)\.(create|update|delete|existing)\[(\d+)\](?:\.(.*))?/);
|
|
1173
1173
|
if (match) {
|
|
1174
1174
|
const secondParent = match[1];
|
|
1175
1175
|
const firstParent = match[0].split('.')[0] + '.' + match[2] + '[' + path.match(/\[(\d+)\]/)[1] + ']'; //
|