Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information