Fixing bad quotation in string.substring
This commit is contained in:
parent
40d6cd4108
commit
5984a0c693
|
@ -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() + "'");
|
||||
|
|
Loading…
Reference in New Issue