Allow any character to be escaped in the path for links.
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user