mirror of
https://github.com/jorgebucaran/fisher
synced 2024-08-17 12:31:05 +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 \
|
||||
| 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