parse_spec_value

Function parse_spec_value 

Source
fn parse_spec_value(value: &str) -> Result<String>
Expand description

Given a string, parse it in a way similar to how systemd would do it. The primary thing here is that we reject any “specifiers” such as %a etc. We do allow a quoted %% to appear in the string, which will result in a single unquoted %.