From 775c8d54c187c43bedd7f22941d039422bd67abd Mon Sep 17 00:00:00 2001 From: Rui Marques Date: Mon, 29 Nov 2021 17:41:10 +0000 Subject: [PATCH] fix: add ~ to the allowed repo path chars Fixes #36 --- lua/gitlinker/git.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/gitlinker/git.lua b/lua/gitlinker/git.lua index 28098f3..404f338 100644 --- a/lua/gitlinker/git.lua +++ b/lua/gitlinker/git.lua @@ -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 .. ")$"