Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
account42
on Jan 23, 2024
|
parent
|
context
|
favorite
| on:
Forging signed commits on GitHub
This is all speculation of course but a parser is more likely to recognize the author: prefix and then error out on anything unexpected in the rest of the line. Meanwhile regular expressions don't have any way to report errors.
glenjamin
on Jan 23, 2024
[–]
Personally I’d have separated finding the Author line from pulling out the contents of that line - but still used Regex
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: