Actually absolute paths are files too.
All checks were successful
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded

This commit is contained in:
Tom Alexander 2023-10-07 00:15:37 -04:00
parent 65e142a215
commit 56348a6d54
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 1 additions and 2 deletions

View File

@ -1,5 +1,4 @@
[[elisp.org]] [[elisp.org]]
[[/elisp.org]]
[[eli [[eli
sp.org]] sp.org]]

View File

@ -239,7 +239,7 @@ fn apply_link_templates<'b, 'g, 'r, 's>(
fn file_path_reg<'s>(input: OrgSource<'s>) -> Res<OrgSource<'s>, PathReg<'s>> { fn file_path_reg<'s>(input: OrgSource<'s>) -> Res<OrgSource<'s>, PathReg<'s>> {
let (remaining, (raw_link, (_, path, search_option))) = consumed(tuple(( let (remaining, (raw_link, (_, path, search_option))) = consumed(tuple((
alt((tag("file:"), peek(tag(".")))), alt((tag("file:"), peek(tag(".")), peek(tag("/")))),
recognize(many_till(anychar, alt((peek(tag("::")), eof)))), recognize(many_till(anychar, alt((peek(tag("::")), eof)))),
opt(map(tuple((tag("::"), rest)), |(_, search_option)| { opt(map(tuple((tag("::"), rest)), |(_, search_option)| {
search_option search_option