Skip to main content

pattern_specificity

Function pattern_specificity 

Source
pub fn pattern_specificity(pattern: &str) -> usize
Expand description

Specificity score for a glob. Higher = more specific. Used as the tie-breaker when multiple rules match the same context. Score is the length of the longest non-* prefix.