Simplify secondary config parse (#1540)

* Add backslash escaping

* Use parseMap instead
This commit is contained in:
Mitchell Syer
2025-07-21 22:20:58 -04:00
committed by GitHub
parent ac5f1a0d93
commit 7cab4b9229

View File

@@ -56,7 +56,7 @@ class SystemPropertyOverrideDelegate(
try {
ConfigFactory.parseString("internal=$systemProperty")
} catch (_: ConfigException) {
ConfigFactory.parseString("internal=\"$systemProperty\"")
ConfigFactory.parseMap(mapOf("internal" to systemProperty))
}
val genericType = object : TypeReference<T>() {}.genericType()