Accept eof as a disallowed character for plain links.
This commit is contained in:
parent
47a440147f
commit
25531cc443
@ -324,7 +324,7 @@ fn impl_path_plain_end<'b, 'g, 'r, 's>(
|
||||
!" \t\r\n[]<>()/".contains(*c) && c.is_ascii_punctuation()
|
||||
}))(input)?;
|
||||
|
||||
let disallowed_character = recognize(one_of(" \t\r\n[]<>"))(remaining);
|
||||
let disallowed_character = alt((recognize(one_of(" \t\r\n[]<>")), eof))(remaining);
|
||||
if disallowed_character.is_ok() {
|
||||
return disallowed_character;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user