1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2024-12-12 19:18:24 +02:00
ripgrep/tests
Andrew Gallant adb9332f52
regex: fix -F aho-corasick optimization
It turns out that when the -F flag was used, if any of the patterns
contained a regex meta character (such as `.`), then we winded up
escaping the pattern first before handing it off to Aho-Corasick, which
treats all patterns literally.

We continue to apply band-aides here and just avoid Aho-Corasick if
there is an escape in any of the literal patterns. This is unfortunate,
but making this work better requires more refactoring, and the right
solution is to get this optimization pushed down into the regex engine.

Fixes #1334
2019-08-01 16:58:12 -04:00
..
data binary: rejigger ripgrep's handling of binary files 2019-04-14 19:29:27 -04:00
binary.rs binary: rejigger ripgrep's handling of binary files 2019-04-14 19:29:27 -04:00
feature.rs ripgrep: max-column-preview --> max-columns-preview 2019-04-15 06:51:51 -04:00
hay.rs tests: re-tool integration tests 2018-08-20 07:10:19 -04:00
json.rs regex: make CRLF hack more robust 2019-01-26 12:34:28 -05:00
macros.rs edition: move core ripgrep to Rust 2018 2019-01-19 10:44:30 -05:00
misc.rs binary: rejigger ripgrep's handling of binary files 2019-04-14 19:29:27 -04:00
multiline.rs binary: rejigger ripgrep's handling of binary files 2019-04-14 19:29:27 -04:00
regression.rs regex: fix -F aho-corasick optimization 2019-08-01 16:58:12 -04:00
tests.rs binary: rejigger ripgrep's handling of binary files 2019-04-14 19:29:27 -04:00
util.rs binary: rejigger ripgrep's handling of binary files 2019-04-14 19:29:27 -04:00