Skip to main content

match_pattern

Function match_pattern 

Source
pub fn match_pattern(pattern: &str, path: &str) -> Option<String>
Expand description

Match path against pattern (supports wildcard *) Returns Some(remaining_path) if match, None otherwise