From b0b4039854b16c495902487b4e4510e49842149e Mon Sep 17 00:00:00 2001 From: Tobias Koch Date: Tue, 23 Jul 2024 15:59:35 +0200 Subject: [PATCH] Allow for `*` at the end of identifiers --- .../qbic/qpostman/common/options/SampleIdentifierOptions.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/life/qbic/qpostman/common/options/SampleIdentifierOptions.java b/src/main/java/life/qbic/qpostman/common/options/SampleIdentifierOptions.java index fccbaba..eb4323e 100644 --- a/src/main/java/life/qbic/qpostman/common/options/SampleIdentifierOptions.java +++ b/src/main/java/life/qbic/qpostman/common/options/SampleIdentifierOptions.java @@ -110,7 +110,7 @@ public List getIds() { : ids; // we want to prevent matching to something shorter than a project code. List toShortSampleIds = identifiers.stream() - .filter(it -> !it.matches("^\\w{5,}")) + .filter(it -> !it.matches("^\\w{5,}\\*?")) .toList(); if (!toShortSampleIds.isEmpty()) { throw new ToShortSampleIdsException(toShortSampleIds);