ryardley / pdsl

The expressive declarative toolkit for composing predicates in TypeScript or JavaScript
https://pdsl.site
MIT License
69 stars 2 forks source link

"OR"ing number expressions in str length calls is not working correctly #168

Closed ryardley closed 4 years ago

ryardley commented 4 years ago

It appears something is wrong with the way these kinds of numeric tests parse

p`string[<5 | >20]`("123456"); // true - should be false