@petdance I've finished the revert and added some tests. However, this invocation of ack still gives output:
$ echo "\n\n\n" | ./tack '^(\s+)' | wc -l
4
This is because \s is matching the \n at the end of each line; to me, that's unrelated to this issue or the abovementioned ones. Want me to file a new issue for this behavior and mark this issue as resolved?
From #572: