Skip to content

Commit 54ca9fe

Browse files
committed
ModuleOverrides.java
1 parent 2212c0a commit 54ca9fe

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/java/org/mitre/synthea/helpers/ModuleOverrides.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -213,12 +213,12 @@ private String escapeForPropertiesFile(String path) {
213213
String moduleFilename = parts[0];
214214
String jsonPath = parts[1];
215215

216-
// Escape only the module filename part for properties file format
216+
// Escape the module filename part for properties file format
217217
String escapedModuleFilename = moduleFilename.replace(" ", "\\ ").replace(":", "\\:");
218218

219-
// JSONPath part stays clean - no escaping needed for JSONPath syntax
220-
// The properties file format will handle this correctly
219+
// CRITICAL FIX: Also escape spaces in the JSONPath part for Properties file format
220+
// Properties files treat spaces as delimiters, so we need to escape them
221+
String escapedJsonPath = jsonPath.replace(" ", "\\ ");
221222

222-
return escapedModuleFilename + "\\:\\:" + jsonPath;
223-
}
224-
}
223+
return escapedModuleFilename + "\\:\\:" + escapedJsonPath;
224+
}

0 commit comments

Comments
 (0)