Skip to main content

add_exclude_pattern

Function add_exclude_pattern 

Source
pub fn add_exclude_pattern(existing: &mut Vec<String>, pattern: String) -> bool
Expand description

Add a pattern only when non-empty and not already present (after normalization).

Returns true when the pattern was inserted.