Do not allow empty path in plain links and do not remove "//" in regular links.

This commit is contained in:
Tom Alexander
2023-10-08 09:34:47 -04:00
parent 1bbe8fc688
commit 038535174b
2 changed files with 2 additions and 3 deletions

View File

@@ -271,9 +271,8 @@ fn file_path_reg<'b, 'g, 'r, 's>(
parse_file_and_application,
),
tag(":"),
opt(tag("//")),
)),
|(_, application, _, _)| application,
|(_, application, _)| application,
),
map(peek(tag(".")), |_| None),
map(peek(tag("/")), |_| None),