mirror of
https://github.com/jorgebucaran/fisher
synced 2024-09-14 15:17:39 +02:00
Tweak validate regex to correctly handle plugins named bb, gh, gl or omf.
This commit is contained in:
parent
3b73ca1107
commit
37101fb85c
1 changed files with 4 additions and 4 deletions
|
@ -25,10 +25,10 @@ function __fisher_plugin_validate -a plugin
|
||||||
|
|
||||||
printf "%s\n" $plugin \
|
printf "%s\n" $plugin \
|
||||||
| sed -E "
|
| sed -E "
|
||||||
s|^gh[:/]*|https://github.com/|
|
s|^gh[:/]+|https://github.com/|
|
||||||
s|^gl[:/]*|https://gitlab.com/|
|
s|^gl[:/]+|https://gitlab.com/|
|
||||||
s|^bb[:/]*|https://bitbucket.org/|
|
s|^bb[:/]+|https://bitbucket.org/|
|
||||||
s|^omf[:/]*|https://github.com/oh-my-fish/|
|
s|^omf[:/]+|https://github.com/oh-my-fish/|
|
||||||
s|^($id+)/($id+)\$|https://github.com/\1/\2|
|
s|^($id+)/($id+)\$|https://github.com/\1/\2|
|
||||||
s|^http(s?)[:/]*|http\1://|
|
s|^http(s?)[:/]*|http\1://|
|
||||||
s|https://github((.com)?/)?|https://github.com/|
|
s|https://github((.com)?/)?|https://github.com/|
|
||||||
|
|
Loading…
Reference in a new issue