`glob_with` case insensitivity seems broken
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Start with MatchOptions and the match_with function, then reproduce the report using the globtest commands and the target/Target examples. Trace how case_sensitive is handled and add coverage for both true and false settings; done means case-sensitive matching distinguishes the names while case-insensitive matching finds target for Target.
Written by the indexing model from the issue text.
Description
In developing globtest (crate here), I seem to have run into an issue where the case_sensitive paremeter of MatchOptions is completely ignored in the match_with function.
Here's an example:
mqudsi@ZBook /m/c/U/M/g/globtest> globtest -d "*"
options {
case_sensitive: true,
require_literal_leading_dot: true,
require_literal_separator: true
};
Cargo.lock
Cargo.toml
LICENSE
README.md
src
target
mqudsi@ZBook /m/c/U/M/g/globtest> globtest -d "target"
options {
case_sensitive: true,
require_literal_leading_dot: true,
require_literal_separator: true
};
target
mqudsi@ZBook /m/c/U/M/g/globtest> globtest -id "Target"
options {
case_sensitive: false,
require_literal_leading_dot: true,
require_literal_separator: true
};
- Dominant language
- Rust
- Stars
- 597
- Forks
- 97
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rust-lang/glob
-
[1.0] Change `MatchOptions::default` to match `MatchOptions::new`Possibly taken @Dym03 claimed this 380 days ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
Difficulty 3/5 1-2 days Newbie friendliness 64/100
-
Difficulty 3/5 1-2 days Newbie friendliness 70/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
Similar issues
-
good first issue help wanted program
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
hffgzktbcc-blip/ounce-core#297 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
nautechsystems/nautilus_trader#5631 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
bytecodealliance/rustix#1736 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
longbridge/gpui-kit#3871 ·
Maintainers usually reply within 1 day
-
area:models enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day