1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2024-12-12 19:18:24 +02:00
ripgrep/tests
Andrew Gallant 9f0e88bcb1
ignore: fix gitignore parsing bug for trailing \/
When a glob pattern ended with a \/, and since we permit backslash
escapes, the glob parser gave a "dangling escape" error. Which is weird,
because the \ is clearly not dangling.

The issue is that the layer above the glob parser, the gitignore parser,
was stripping the trailing / so that it wouldn't be part of the matching
logic. Of course, stripping the trailing / while it is escaped without
removing the backslash escape is wrong. So we do that here.

Fixes #2236
2022-06-14 10:40:37 -04:00
..
data tests: fix tests for buffer size change 2021-03-23 18:14:18 -04:00
binary.rs tests: fix tests for buffer size change 2021-03-23 18:14:18 -04:00
feature.rs cli: add --field-{context,match}-separator flags 2021-05-31 21:51:18 -04:00
hay.rs tests: re-tool integration tests 2018-08-20 07:10:19 -04:00
json.rs grep: fix bugs in handling multi-line look-around 2021-05-31 21:51:18 -04:00
macros.rs style: rustfmt everything 2020-02-17 19:24:53 -05:00
misc.rs printer: tweak binary detection message format 2020-11-02 10:52:51 -05:00
multiline.rs printer: vimgrep now only prints one line 2021-05-31 21:51:18 -04:00
regression.rs ignore: fix gitignore parsing bug for trailing \/ 2022-06-14 10:40:37 -04:00
tests.rs binary: rejigger ripgrep's handling of binary files 2019-04-14 19:29:27 -04:00
util.rs tests: add debugging output 2020-02-20 16:07:51 -05:00