You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: resolve potential excludeKeys match to a key path other than at the start of a string
In a case where `excludeKeys` is set to `["arr"]`, there was a possibility that with JSON data looking like this:
```
[
{
"id": 1,
"arr": [
{
"name": "foo"
}
],
"name": {
"arr": "this should appear"
}
},
{
"id": 2,
"arr": [
{
"name": "bar"
}
],
"name": {
"arr": "this should also appear"
}
}
]
```
could potentially result in both `arr.name` and `name.arr` being excluded. By adjusting the RegExp thats being used for the matching, this fixes a potential bug that caused `name.arr` to be mistakenly excluded.
0 commit comments