ryardley / pdsl

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

Bug: String quoting error #147

Open ryardley opened 4 years ago

ryardley commented 4 years ago

The following should pass but it fails validation:

expect(
    p`"This string \"contains\" 'single quotes'"`(
      "This string \"contains\" 'single quotes'"
    )
  ).toBe(true);