Dan Luu on Nostr: The bug here is that if you write an unexpected author line, the regex looking for an ...
The bug here is that if you write an unexpected author line, the regex looking for an author keeps scanning until it finds another author line (which is fake!): https://iter.ca/post/gh-sig-pwn/
If you wrote a parser and it encountered unexpected stuff, it seems pretty standard to error out when you run into unexpected stuff and not just keep consuming and throwing away input until it matches something expected.
Am I missing something here?
If you wrote a parser and it encountered unexpected stuff, it seems pretty standard to error out when you run into unexpected stuff and not just keep consuming and throwing away input until it matches something expected.
Am I missing something here?