diff options
author | Andrew Gallant <jamslam@gmail.com> | 2019-04-19 07:10:24 -0400 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2019-04-19 07:11:44 -0400 |
commit | e7829c05d3b9234f053e7d480f7e75028831d772 (patch) | |
tree | a6323746ebba4762cc21dca77b6d1e415d4898e7 /src/main.rs | |
parent | a6222939f9032b40de6065a71cf06d143dda86a3 (diff) |
cli: fix bug where last byte was stripped
In an effort to strip line terminators, we assumed their existence. But
a pattern file may not end with a line terminator, so we shouldn't
unconditionally strip them.
We fix this by moving to bstr's line handling, which does this for us
automatically.
Diffstat (limited to 'src/main.rs')
0 files changed, 0 insertions, 0 deletions