Skip to content

Commit

Permalink
fix: add ~ to the allowed repo path chars
Browse files Browse the repository at this point in the history
Fixes #36
  • Loading branch information
ruifm committed Nov 29, 2021
1 parent 5579437 commit 775c8d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/gitlinker/git.lua
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ end
local function parse_repo_path(stripped_uri, host, port, errs)
assert(host)

local pathChars = "[/_%-%w%.]+"
local pathChars = "[~/_%-%w%.]+"
-- base of path capture
local path_capture = "[:/](" .. pathChars .. ")$"

Expand Down

0 comments on commit 775c8d5

Please sign in to comment.