diff --git a/org_mode_samples/object/regular_link/fuzzy_link.org b/org_mode_samples/object/regular_link/fuzzy_link.org index ce26f30..17ebd7a 100644 --- a/org_mode_samples/object/regular_link/fuzzy_link.org +++ b/org_mode_samples/object/regular_link/fuzzy_link.org @@ -1,5 +1,4 @@ [[elisp.org]] -[[/elisp.org]] [[eli sp.org]] diff --git a/src/parser/regular_link.rs b/src/parser/regular_link.rs index 5dbd8b9..a99dee3 100644 --- a/src/parser/regular_link.rs +++ b/src/parser/regular_link.rs @@ -239,7 +239,7 @@ fn apply_link_templates<'b, 'g, 'r, 's>( fn file_path_reg<'s>(input: OrgSource<'s>) -> Res, PathReg<'s>> { 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)))), opt(map(tuple((tag("::"), rest)), |(_, search_option)| { search_option