Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
zeta: Add `LICENSE.md` and `LICENCE.md` to license detection (#25422)
Aivaz Latypov7e097d529acd
diff --git a/crates/zeta/src/license_detection.rs b/crates/zeta/src/license_detection.rsindex f2c12c1bcc1..e27ef8918df 100644--- a/crates/zeta/src/license_detection.rs+++ b/crates/zeta/src/license_detection.rs@@ -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)