From 37101fb85cbfdd2570619cbe6309e81c657f7026 Mon Sep 17 00:00:00 2001 From: Jorge Bucaran Date: Thu, 4 Feb 2016 01:32:56 +0900 Subject: [PATCH] Tweak validate regex to correctly handle plugins named bb, gh, gl or omf. --- functions/__fisher_plugin_validate.fish | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/functions/__fisher_plugin_validate.fish b/functions/__fisher_plugin_validate.fish index 65f6756..0dbb5ee 100644 --- a/functions/__fisher_plugin_validate.fish +++ b/functions/__fisher_plugin_validate.fish @@ -25,10 +25,10 @@ function __fisher_plugin_validate -a plugin printf "%s\n" $plugin \ | sed -E " - s|^gh[:/]*|https://github.com/| - s|^gl[:/]*|https://gitlab.com/| - s|^bb[:/]*|https://bitbucket.org/| - s|^omf[:/]*|https://github.com/oh-my-fish/| + s|^gh[:/]+|https://github.com/| + s|^gl[:/]+|https://gitlab.com/| + s|^bb[:/]+|https://bitbucket.org/| + s|^omf[:/]+|https://github.com/oh-my-fish/| s|^($id+)/($id+)\$|https://github.com/\1/\2| s|^http(s?)[:/]*|http\1://| s|https://github((.com)?/)?|https://github.com/|