Skip to main content

match_any_pattern

Function match_any_pattern 

Source
pub fn match_any_pattern<'a>(terms: impl IntoIterator<Item = &'a str>) -> String
Expand description

matchAnyPattern(dictionary): pass the dictionary keys in upstream’s key order. Longest first (stable sort, so equal lengths keep that order), joined with |, dots escaped.