Skip to content

Commit

Permalink
CDE-328 : suppression commentaire
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre-maraval committed Dec 19, 2023
1 parent d9d7792 commit 2ea92c7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/main/java/fr/abes/kbart2kafka/utils/CheckFiles.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ public class CheckFiles {

public static void detectFileName(File file) throws IllegalFileFormatException {
String filename = file.getName();
//if(!filename.matches("([a-zA-Z0-9\\-_]+_[a-zA-Z0-9\\-]+_)+(\\d{4}-\\d{2}-\\d{2})+(_FORCE)?+(.tsv)$")){
if (!filename.matches("([a-zA-Z0-9\\-]+_){3}(\\d{4}-\\d{2}-\\d{2})+(_FORCE)?+(.tsv)$")) {
log.error("Message envoyé : {}", "Le nom du fichier n'est pas correct");
throw new IllegalFileFormatException("Le nom du fichier "+ filename +" n'est pas correct");
Expand Down

0 comments on commit 2ea92c7

Please sign in to comment.