Ignore files without a file extension as well
This commit is contained in:
parent
1be88063f4
commit
ca87d5391f
1 changed files with 2 additions and 0 deletions
|
@ -92,6 +92,8 @@ fn lint_file_name(file: &DirEntry, filename: &str) -> ComplianceStatus {
|
||||||
if !VIDEO_EXTENSIONS.contains(&ext.to_str().unwrap()) {
|
if !VIDEO_EXTENSIONS.contains(&ext.to_str().unwrap()) {
|
||||||
return ComplianceStatus::Ignored;
|
return ComplianceStatus::Ignored;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
return ComplianceStatus::Ignored;
|
||||||
}
|
}
|
||||||
|
|
||||||
let captures = regex::Regex::new(SERIES_REGEX).unwrap().captures(filename);
|
let captures = regex::Regex::new(SERIES_REGEX).unwrap().captures(filename);
|
||||||
|
|
Loading…
Reference in a new issue