mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-27 08:19:22 +03:00
allow alphanumeric instead of alphabetic in option() parsing
This change allows option names to contain digits, like in `aws-sigv4`.
This commit is contained in:
parent
591e129469
commit
58c4e0534f
@ -358,7 +358,7 @@ fn option(reader: &mut Reader) -> ParseResult<'static, EntryOption> {
|
||||
let line_terminators = optional_line_terminators(reader)?;
|
||||
let space0 = zero_or_more_spaces(reader)?;
|
||||
let pos = reader.state.pos.clone();
|
||||
let option = reader.read_while(|c| c.is_ascii_alphabetic() || *c == '-');
|
||||
let option = reader.read_while(|c| c.is_ascii_alphanumeric() || *c == '-');
|
||||
let space1 = zero_or_more_spaces(reader)?;
|
||||
try_literal(":", reader)?;
|
||||
let space2 = zero_or_more_spaces(reader)?;
|
||||
|
Loading…
Reference in New Issue
Block a user