mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02:00
Tweak validate regex to correctly handle plugins named bb, gh, gl or omf.
This commit is contained in:
parent
9542f38a0c
commit
0f92751ee3
1 changed files with 4 additions and 4 deletions
|
@ -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/|
|
||||
|
|
Loading…
Reference in a new issue