From 3bf4e894be442f8011a8a499d1722b02ce1633bd Mon Sep 17 00:00:00 2001 From: AngeloCaporaso Date: Fri, 29 Mar 2024 11:41:41 +0100 Subject: [PATCH] [PAGOPA] fix: update file pattern regex --- .../java/it/gov/pagopa/canoneunico/functions/CuCsvParsing.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/it/gov/pagopa/canoneunico/functions/CuCsvParsing.java b/src/main/java/it/gov/pagopa/canoneunico/functions/CuCsvParsing.java index 2cf6d28..98c652e 100644 --- a/src/main/java/it/gov/pagopa/canoneunico/functions/CuCsvParsing.java +++ b/src/main/java/it/gov/pagopa/canoneunico/functions/CuCsvParsing.java @@ -111,7 +111,7 @@ public BlobInfo getDataFromEvent(ExecutionContext context, String events) throws } logger.log(Level.INFO, () -> String.format("[id=%s][CuCsvParsing] Blob event subject: %s", context.getInvocationId(), event.getSubject())); - Pattern pattern = Pattern.compile("containers/(\\w+)/blobs/"+INPUT_DIRECTORY_NAME+"/([\\w-/]+\\.csv)"); + Pattern pattern = Pattern.compile("containers/(\\w+)/blobs/"+INPUT_DIRECTORY_NAME+"/([\\w-/]+\\.csv|[\\w-/]+\\.CSV)"); Matcher matcher = pattern.matcher(event.getSubject()); // Check if the pattern is found