authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-08-10 01:45:29 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-08-10 01:45:29 -07:00
log3ff57d0681b7bd7f8ca9bd092afa0b4bfe2f1afd
tree260fea95751ef9afb02412f5c2c363f9f58f10e7
parent8f13721bd18c0e546841b6f2e11da839550d6287

detect LICENSE.txt too


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

src/lib.zig+1
......@@ -21,6 +21,7 @@ pub fn detect(alloc: std.mem.Allocator, license_src: []const u8) ![]const u8 {
2121pub fn detectInDir(alloc: std.mem.Allocator, dir: std.fs.Dir) !?[]const u8 {
2222 const b = (try testLicenseFile(alloc, dir, "LICENSE")) orelse
2323 (try testLicenseFile(alloc, dir, "LICENSE.md")) orelse
24 (try testLicenseFile(alloc, dir, "LICENSE.txt")) orelse
2425 return null;
2526
2627 defer alloc.free(b);