zeta: Add LICENSE.md and LICENCE.md to license detection (#25422)
Maybe it's not a very common, but it has a place to be. Release Notes: - Added `LICENSE.md` and `LICENCE.md` files to license detection for edit prediction. --------- Co-authored-by: Marshall Bowers <git@maxdeviant.com>
This commit is contained in:
co-authored by
Marshall Bowers
parent
65f76e6f4d
commit
7e097d529a
@@ -1,7 +1,14 @@
|
||||
use regex::Regex;
|
||||
|
||||
/// The most common license locations, with US and UK English spelling.
|
||||
pub const LICENSE_FILES_TO_CHECK: &[&str] = &["LICENSE", "LICENCE", "LICENSE.txt", "LICENCE.txt"];
|
||||
pub const LICENSE_FILES_TO_CHECK: &[&str] = &[
|
||||
"LICENSE",
|
||||
"LICENCE",
|
||||
"LICENSE.txt",
|
||||
"LICENCE.txt",
|
||||
"LICENSE.md",
|
||||
"LICENCE.md",
|
||||
];
|
||||
|
||||
pub fn is_license_eligible_for_data_collection(license: &str) -> bool {
|
||||
// TODO: Include more licenses later (namely, Apache)
|
||||
|
||||
Reference in New Issue
Block a user