Skip to content

Commit

Permalink
refactor: use \d instead of [0-9]
Browse files Browse the repository at this point in the history
  • Loading branch information
pcvolkmer committed Oct 3, 2024
1 parent 404a6cd commit a9d02c0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public Optional<History> 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()));
Expand Down

0 comments on commit a9d02c0

Please sign in to comment.