@ 261104.1

261028.3.4 · 90f6adad22b745f059e5260a6fd924225e86c334

fix: pattern-specific case checking

Check for uppercase characters differently based on what kind of pattern we have. This fixes a bug where if the pattern wasn't a valid regex, then we didn't correctly detect if it had an uppercase character.

reading declarations

Changes to tests/. All files

tests/tests.rs

@@ -649,6 +649,7 @@ fn test_smart_case_glob_searches() {     );      te.assert_output(&["--glob", "C.Foo*"], "one/two/C.Foo2");+    te.assert_output(&["--glob", "*.Foo*"], "one/two/C.Foo2"); }  /// Glob-based searches (--glob) in combination with --case-sensitive