authorgravatar for hello@nektro.netMeghan <hello@nektro.net> 2020-12-05 10:05:12 -08:00
committergravatar for hello@nektro.netMeghan <hello@nektro.net> 2020-12-05 10:05:12 -08:00
log78a35f3bc98a380f06a374f34f23af903315cafa
tree6d94efeaf4c392b5df1c63ea688a678af18d048c
parent05df704ff8981166bb4df0e205f976c4ce30b54f

util/dep- trim http and https from path


1 files changed, 1 insertions(+), 1 deletions(-)

src/util/dep.zig+1-1
......@@ -24,7 +24,7 @@ pub const Dep = struct {
2424
2525 pub fn clean_path(self: Dep) ![]const u8 {
2626 var p = self.path;
27 p = u.trim_prefix(p, "https://");
27 p = u.trim_prefix(p, "http://");
2828 p = u.trim_prefix(p, "https://");
2929 p = u.trim_suffix(u8, p, ".git");
3030 p = try std.fmt.allocPrint(gpa, "{}{}{}", .{@tagName(self.type), "/", p});