Commit 6aa2623
committed
fix: improve getNestedField to fetch field in objects containing arrays
- the regex breaks the path into segments, handling both dot (.) and bracket ([]) notations
- the filter(Boolean) ensures empty strings are excluded
Signed-off-by: Dave Canton <[email protected]>1 parent 54f36c7 commit 6aa2623
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
0 commit comments