From 5984a0c6930e3c2d52b1644c537b53e7b1c6a9b1 Mon Sep 17 00:00:00 2001 From: markiantorno Date: Tue, 25 Feb 2020 14:14:40 -0500 Subject: [PATCH] Fixing bad quotation in string.substring --- .../org/hl7/fhir/validation/instance/InstanceValidator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/instance/InstanceValidator.java b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/instance/InstanceValidator.java index a516c401c..e4dbb67d1 100644 --- a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/instance/InstanceValidator.java +++ b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/instance/InstanceValidator.java @@ -3280,7 +3280,7 @@ public class InstanceValidator extends BaseValidator implements IResourceValidat Gson gson = new Gson(); String json = gson.toJson((StringType) fixed); String escapedString = json.substring(json.indexOf(":") + 2); - escapedString = escapedString.substring(0, escapedString.indexOf(",'myStringValue") - 1); + escapedString = escapedString.substring(0, escapedString.indexOf(",\"myStringValue") - 1); expression.append("'" + escapedString + "'"); } else if (fixed instanceof UriType) { expression.append("'" + ((UriType) fixed).asStringValue() + "'");