wavebeem / bread-n-butter

Parser combinators for TypeScript and JavaScript
https://bread-n-butter.wavebeem.com/
MIT License
35 stars 6 forks source link

Fix sepBy throws when max==1 #15

Closed seanchas116 closed 3 years ago

seanchas116 commented 3 years ago

Thank you for merging #14!

This pull request fixes sepBy throws an error when max == 1. (maybe sepBy with max==1 is meaningless through)

wavebeem commented 3 years ago

Oh, good catch! I'm working on a few updates over here: https://github.com/wavebeem/bread-n-butter/pull/16