summaryrefslogtreecommitdiffstats
path: root/doc/rg.1.md
diff options
context:
space:
mode:
authorBrian Campbell <lambda@continuation.org>2017-10-23 22:52:01 -0400
committerAndrew Gallant <jamslam@gmail.com>2017-11-01 07:10:33 -0400
commit8b9eba2147587d5c8a39708fdda6a1a3be032f9e (patch)
tree8b3017ceab2802a37495c27a2a527db760445396 /doc/rg.1.md
parentc4732ca0123488455b1720359bdb26c8af439a96 (diff)
Properly match the rules "**/" and "!**/"
When processing a rule that ends in a slash, we strip it off and set the `is_only_dir` flag. We then apply the rule that paths that aren't absolute should be given an implicit `**/` prefix, while avoiding adding that prefix if it already exists. However, this means that we miss the case in which we had already stripped off the trailing slash and set `is_only_dir`. Correct this by also explicitly checking for that case. Fixes #649
Diffstat (limited to 'doc/rg.1.md')
0 files changed, 0 insertions, 0 deletions