Skip to content

Commit

Permalink
Parse colon separated path
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeiwork committed Sep 30, 2024
1 parent 98f622e commit 472ce5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
{
for(const [key, value] of Object.entries(obj))
{
let currentPath = path === null ? key : `${path}__${key}`
let filteredKey = key.replaceAll(':', '__')
let currentPath = path === null ? filteredKey : `${path}__${filteredKey}`
console.log(currentPath)
if (typeof value == "object" && value !== null)
for(var v of getValues(value, currentPath))
Expand Down

0 comments on commit 472ce5f

Please sign in to comment.