Closed bahmutov closed 8 years ago
but this happens outside the validateMessage function, so not covered by unit tests
function firstLineFromBuffer(buffer) {
return buffer && buffer.toString().split('\n').shift();
}
I need to give you an apology. For some reason, I want watching this repository so I want getting notifications about issues and pull requests. I am so incredibly sorry. Please forgive me. I really feel awful. I hope my unresponsiveness doesn't hinder you contributing more in the future.
As for your specific pull request, I'll give it a closer look soon.
Sometimes if called without an actual message, crashes badly trying to get the first line. For example from
pre-git
use