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