How do I match globs case insensitively? #2967
-
Please tick this box to confirm you have reviewed the above.
What version of ripgrep are you using?ripgrep 14.1.0 (rev e50df40) How did you install ripgrep?chocolatey (i.e. choco) What operating system are you using ripgrep on?Windows 11 Describe your bug.The case-insensitive search ( What are the steps to reproduce the behavior?Here, I created 2 files and tried to search them with and without the case-insensitive search ( What is the actual behavior?Please take a look at the image above. What is the expected behavior?Ideally the first 2 rg queries (with the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The |
Beta Was this translation helpful? Give feedback.
The
-i/--ignore-case
flag only applies to searching the contents of files. For what you're doing, you want--glob-case-insensitive
. By default, globs are matched case sensitively.