Allow any character to be escaped in the path for links.

This commit is contained in:
Tom Alexander
2023-09-14 02:58:57 -04:00
parent 87941271a4
commit 876d33239e
3 changed files with 5 additions and 2 deletions

View File

@@ -2,7 +2,7 @@ use nom::branch::alt;
use nom::bytes::complete::escaped;
use nom::bytes::complete::tag;
use nom::bytes::complete::take_till1;
use nom::character::complete::one_of;
use nom::character::complete::anychar;
use nom::combinator::verify;
use nom::multi::many_till;
@@ -82,7 +82,7 @@ fn pathreg<'b, 'g, 'r, 's>(
_ => false,
}),
'\\',
one_of(r#"]"#),
anychar,
)(input)?;
Ok((remaining, path))
}