mirror of
https://github.com/apple/pkl.git
synced 2026-03-24 01:51:19 +01:00
Fix parsing of external property values containing = (#631)
This commit is contained in:
committed by
GitHub
parent
e5b7e046d9
commit
a8f24c9f13
@@ -68,8 +68,8 @@ class BaseOptions : OptionGroup() {
|
||||
fun RawOption.associateProps():
|
||||
OptionWithValues<Map<String, String>, Pair<String, String>, Pair<String, String>> {
|
||||
return convert {
|
||||
val parts = it.split("=")
|
||||
if (parts.size <= 1) parts[0] to "true" else parts[0] to parts[1]
|
||||
val eq = it.indexOf('=')
|
||||
if (eq == -1) it to "true" else it.substring(0, eq) to it.substring(eq + 1)
|
||||
}
|
||||
.multiple()
|
||||
.toMap()
|
||||
|
||||
Reference in New Issue
Block a user