repochecker/epita: Fix file format checking

This commit is contained in:
nemunaire 2022-11-03 01:31:38 +01:00
parent b334122707
commit 76ee40b7f1
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ import (
func EPITACheckFile(file *fic.EFile, exceptions *sync.CheckExceptions) (errs []error) {
// Enforce file format
if path.Ext(file.Name) == "rar" || path.Ext(file.Name) == "7z" {
if path.Ext(file.Name) == ".rar" || path.Ext(file.Name) == ".7z" {
errs = append(errs, fmt.Errorf("this file use a forbidden archive type."))
}