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 {...@@ -21,6 +21,7 @@ pub fn detect(alloc: std.mem.Allocator, license_src: []const u8) ![]const u8 {
21pub fn detectInDir(alloc: std.mem.Allocator, dir: std.fs.Dir) !?[]const u8 {21pub fn detectInDir(alloc: std.mem.Allocator, dir: std.fs.Dir) !?[]const u8 {
22 const b = (try testLicenseFile(alloc, dir, "LICENSE")) orelse22 const b = (try testLicenseFile(alloc, dir, "LICENSE")) orelse
23 (try testLicenseFile(alloc, dir, "LICENSE.md")) orelse23 (try testLicenseFile(alloc, dir, "LICENSE.md")) orelse
24 (try testLicenseFile(alloc, dir, "LICENSE.txt")) orelse
24 return null;25 return null;
2526
26 defer alloc.free(b);27 defer alloc.free(b);