pub(crate) fn parse_metadata(input: &str) -> IResult<&str, Vec<String>, RuleParseError<&str>> {
    let sep = terminated(multispace0, preceded(multispace0, tag(",")));
    let (input, parts) = separated_list0(
        sep,
        preceded(multispace0, take_while(|c| c != ',' && c != ';')),
    )(input)?;
    let parts: Vec<String> = parts.iter().map(|p| p.trim().to_string()).collect();
    Ok((input, parts))
}
/// Parse the metadata into a list of the comma separated values.
Parse the metadata into a list of the comma separated values.
Parse the metadata into a list of the comma separated values .
pub(crate) fn parse_metadata(input: &str) -> IResult<&str, Vec<String>, RuleParseError<&str>> {
    let sep = terminated(multispace0, preceded(multispace0, tag(",")));
    let (input, parts) = separated_list0(
        sep,
        preceded(multispace0, take_while(|c| c != ',' && c != ';')),
    )(input)?;
    let parts: Vec<String> = parts.iter().map(|p| p.trim().to_string()).collect();
    Ok((input, parts))
}
pub ( crate ) fn parse_metadata ( input : & str ) -> IResult < & str , Vec < String > , RuleParseError < & str > > { let sep = terminated ( multispace0 , preceded ( multispace0 , tag ( " " ) ) ) ; let ( input , parts ) = separated_list0 ( sep , preceded ( multispace0 , take_while ( | c | c != ',' && c != ';' ) ) , ) ( input ) ? ; let parts : Vec < String > = parts . iter ( ) . map ( | p | p . trim ( ) . to_string ( ) ) . collect ( ) ; Ok ( ( input , parts ) ) }
Parse the metadata into a list of the comma separated values.
Parse the metadata into a list of the comma separated values .
input
&str