compiletest::header

Function parse_normalize_rule

Source
fn parse_normalize_rule(header: &str) -> Option<(String, String)>
Expand description

Parses the regex and replacement values of a //@ normalize-* header, in the format:

normalize-*: "REGEX" -> "REPLACEMENT"