Skip to content

Commit

Permalink
Allow spaces in header portion of links
Browse files Browse the repository at this point in the history
  • Loading branch information
mscott99 committed Sep 3, 2023
1 parent 6b17ee6 commit 044ec02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/obsidian/command.lua
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ command.follow = function(client, _)
end

-- Remove header link from the end if there is one.
local header_link = note_file_name:match "#[%a%d-_]+$"
local header_link = note_file_name:match "#[%a%d -_]+$"
if header_link ~= nil then
note_file_name = note_file_name:sub(1, -header_link:len() - 1)
end
Expand Down

0 comments on commit 044ec02

Please sign in to comment.