olson-sean-k / wax

Opinionated and portable globs that can be matched against paths and directory trees.
https://glob.guide
MIT License
112 stars 10 forks source link

feat: allow literal to be more flexible about escaped characters #38

Open brunoschmidt opened 1 year ago

brunoschmidt commented 1 year ago

As described at issue #37, here I parameterized literal allowing it to receive extra characters to stop and making glob use this when called from repetition and alternative.

For peace of mind, I created some integration tests including all these cases.

Also, I experimented with turning the closing characters "]})>" also optionally escapable, but this would make some typing errors more difficult to find.