beyondgrep / ack2

**ack 2 is no longer being maintained. ack 3 is the latest version.**
https://github.com/beyondgrep/ack3/
Other
1.48k stars 140 forks source link

\s matches newline characters #589

Closed hoelzro closed 5 years ago

hoelzro commented 8 years ago

From #572:

@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?
petdance commented 8 years ago

Similarly, this attempt to find any lines with all whitespace returns every empty line.

ack '^\s+$' foo
petdance commented 5 years ago

This is fixed in ack 3. There will be no more ack 2 releases.