Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array brackets within keys sometimes mess up processing #17

Open
Aaronius opened this issue Jun 25, 2020 · 0 comments
Open

Array brackets within keys sometimes mess up processing #17

Aaronius opened this issue Jun 25, 2020 · 0 comments

Comments

@Aaronius
Copy link

Hi! Thanks for the great library. I'm noticing an issue when array brackets are within keys. For example:

const data = {
  "a[]b": "c"
};

dot.forEach(data, 'a[]b', () => {
  console.log('match found');
})

I would expect "match found" to be logged, but it's not. It seems that dot-wild isn't treating the brackets in some special way when it should be treating it as regular characters within the key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant