pub fn simple_length(match_str: &str) -> usize
Returns the length of the leading literal segment before the first glob metacharacter, matching Git’s simple_length() (* ? [ \) on bytes.
simple_length()
*
?
[
\