Tweak validate regex to correctly handle plugins named bb, gh, gl or omf.

This commit is contained in:
Jorge Bucaran 2016-02-04 01:32:56 +09:00
parent 9542f38a0c
commit 0f92751ee3
No known key found for this signature in database
GPG key ID: E54BA3C0E646DB30

View file

@ -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/|