Skip to content

Commit

Permalink
🚸 (webhook) Improve deep keys parser
Browse files Browse the repository at this point in the history
Support for field names with dashes
  • Loading branch information
baptisteArno committed Aug 7, 2023
1 parent 1ae3029 commit 9171727
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const getDeepKeys = (obj: any): string[] => {

const parseKey = (key: string) => {
if (
key.includes(' ') &&
(key.includes(' ') || key.includes('-')) &&
!key.includes('.flatMap(item => item') &&
!key.includes("['") &&
!key.includes("']")
Expand Down

0 comments on commit 9171727

Please sign in to comment.