mirror of
https://github.com/jorgebucaran/fisher
synced 2024-11-19 09:25:40 +00:00
fix: normalize package id in fishfile format script
This commit is contained in:
parent
45e556ab18
commit
8d3e4d367e
@ -376,7 +376,7 @@ function _fisher_fishfile_format -a pkgs
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
function normalize(s) {
|
function normalize(s) {
|
||||||
gsub(/^[ \t]*(https?:\/\/)?(github\.com\/)?|[\/ \t]*$/, "")
|
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 New Issue
Block a user