amark / gun

An open source cybersecurity protocol for syncing decentralized graph data.
https://gun.eco/docs
Other
18.05k stars 1.16k forks source link

LEX bug test #1186

Open orimay opened 2 years ago

orimay commented 2 years ago

Say, we have a list of props on a node:

aa
ab
ac

Then we query it like this:

{
  '.': {
    '*': 'a',
    '>': 'ab'
  }
}

The result we expect:

ab
ac

The result we get:

aa
ab
ac
amark commented 2 years ago

👍 sounds like this is gonna be a win+win for everything, your other PR had smaller code, and this is a more sensible default that didn't add any complexity. I'm very impressed! Thanks for being willing to switch to ECMAscript5.

bmatusiak commented 2 years ago

@Orimay we moved String.match() to lib/lex.js