Skip to content

Commit

Permalink
[PAGOPA] fix: update file pattern regex
Browse files Browse the repository at this point in the history
  • Loading branch information
cap-ang committed Mar 29, 2024
1 parent 76c3bf0 commit 3bf4e89
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3bf4e89

Please sign in to comment.