From aff893c05b561051985410ea5e2786e65cce82da Mon Sep 17 00:00:00 2001 From: Jorge Bucaran Date: Sun, 21 Oct 2018 22:33:59 +0900 Subject: [PATCH] refactor: change regex to remove everything before a ***github.com/foo/bar --- fisher.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fisher.fish b/fisher.fish index 6451d7c..e253b88 100644 --- a/fisher.fish +++ b/fisher.fish @@ -407,7 +407,7 @@ function _fisher_fishfile_format -a pkgs } } function normalize(s) { - gsub(/^[ \t]*(https?:\/\/)?(github\.com\/)?|[\/ \t]*$/, "", s) + gsub(/^[ \t]*(https?:\/\/)?(.*github\.com\/)?|[\/ \t]*$/, "", s) sub(/^\.\//, PWD"/", s) sub(HOME, "~", s) return s