fix: normalize package id in fishfile format script

pull/480/head
Jorge Bucaran 6 years ago
parent 45e556ab18
commit 8d3e4d367e
No known key found for this signature in database
GPG Key ID: E54BA3C0E646DB30

@ -376,7 +376,7 @@ function _fisher_fishfile_format -a pkgs
}
}
function normalize(s) {
gsub(/^[ \t]*(https?:\/\/)?(github\.com\/)?|[\/ \t]*$/, "")
gsub(/^[ \t]*(https?:\/\/)?(github\.com\/)?|[\/ \t]*$/, "", s)
sub(/^\.\//, PWD"/", s)
sub(HOME, "~", s)
return s

Loading…
Cancel
Save