Commit a673d24
committed
Support Empty List Path In get
Solves Issue dpath-maintainers#193. Currently, dpath.get() works with a path of '/' by
returning the value of the object passed in. This behavior is not
reflected with an empty list. Now, passing an empty list to dpath.get()
will behave the same way (returning the root object value).1 parent e0d412f commit a673d24
2 files changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| |||
0 commit comments