From 783ad9b8500fecbbe77224f0ecbf113eca610c21 Mon Sep 17 00:00:00 2001 From: Pieter Edelman Date: Fri, 14 May 2021 15:58:03 +0200 Subject: [PATCH] Issue #497: turn on single line mode for FHIRPath matches() --- .../src/main/java/org/hl7/fhir/r5/utils/FHIRPathEngine.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/FHIRPathEngine.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/FHIRPathEngine.java index f857c5ef5..23432ce6d 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/FHIRPathEngine.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/FHIRPathEngine.java @@ -4711,7 +4711,7 @@ public class FHIRPathEngine { if (Utilities.noString(st)) { result.add(new BooleanType(false).noExtensions()); } else { - boolean ok = st.matches(sw); + boolean ok = st.matches("(?s)" + sw); result.add(new BooleanType(ok).noExtensions()); } } else {