From a9d02c0f5ada3608da5a3dfc54cdf9387a1a16d1 Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Thu, 3 Oct 2024 10:10:41 +0200 Subject: [PATCH] refactor: use `\d` instead of `[0-9]` --- .../de/ukw/ccc/dnpmexport/mapper/FollowUpToHistoryMapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/ukw/ccc/dnpmexport/mapper/FollowUpToHistoryMapper.java b/src/main/java/de/ukw/ccc/dnpmexport/mapper/FollowUpToHistoryMapper.java index f999fed..437d964 100644 --- a/src/main/java/de/ukw/ccc/dnpmexport/mapper/FollowUpToHistoryMapper.java +++ b/src/main/java/de/ukw/ccc/dnpmexport/mapper/FollowUpToHistoryMapper.java @@ -83,7 +83,7 @@ public Optional apply(Procedure procedure) { } var basedOn = procedure.getValue(FIELD_NAME_BASED_ON); - if (null != basedOn && basedOn.getString().matches("[0-9]*")) { + if (null != basedOn && basedOn.getString().matches("\\d*")) { builder.withBasedOn(anonymizeString(basedOn.getString())); final var einzelempfehlung = mapperUtils.onkostarApi().getProcedure(Integer.parseInt(basedOn.getString()));