Skip to main content

parse_multi_level_specs

Function parse_multi_level_specs 

Source
pub fn parse_multi_level_specs(spec: &str) -> Vec<MultiLevelRule>
Expand description

Parse one or more –multi-level specs separated by ;.

Each rule is file_pattern:root_to_strip:unique_id_elements; rules are joined by ; because the third part is itself a comma-separated list. Empty rules (e.g. trailing ;) are skipped silently. Malformed rules are dropped (the caller may warn separately if it needs to surface that to the user).