mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02:00
refactor: change regex to remove everything before a ***github.com/foo/bar
This commit is contained in:
parent
b4c4023e16
commit
aff893c05b
1 changed files with 1 additions and 1 deletions
|
@ -407,7 +407,7 @@ function _fisher_fishfile_format -a pkgs
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function normalize(s) {
|
function normalize(s) {
|
||||||
gsub(/^[ \t]*(https?:\/\/)?(github\.com\/)?|[\/ \t]*$/, "", s)
|
gsub(/^[ \t]*(https?:\/\/)?(.*github\.com\/)?|[\/ \t]*$/, "", s)
|
||||||
sub(/^\.\//, PWD"/", s)
|
sub(/^\.\//, PWD"/", s)
|
||||||
sub(HOME, "~", s)
|
sub(HOME, "~", s)
|
||||||
return s
|
return s
|
||||||
|
|
Loading…
Reference in a new issue