Skip to main content

case_fix

Function case_fix 

Source
pub fn case_fix(pattern: &str, known: &KnownTools) -> Option<String>
Expand description

The correct spelling of pattern when it matches no known tool exactly but does match one ignoring ASCII case. None = the pattern is live, or unrecognisable either way (not a case problem). Trailing-* globs are checked by their prefix and the suggestion keeps the *.