pub fn is_valid_subsection(name: &BStr) -> bool
Expand description

Return true if name is valid as subsection name, like origin in [remote "origin"].

Examples found in repository?
src/parse/section/header.rs (line 50)
49
50
51
52
53
fn validated_subsection(name: Cow<'_, BStr>) -> Result<Cow<'_, BStr>, Error> {
    is_valid_subsection(name.as_ref())
        .then(|| name)
        .ok_or(Error::InvalidSubSection)
}