Relax whitespace requirements for lists in Property files.
This commit is contained in:
committed by
alexander-gorshenev
parent
c7190141b1
commit
9d8663a4fa
@@ -50,7 +50,7 @@ fun Properties.propertyList(key: String, suffix: String? = null): List<String> {
|
||||
val value = this.getProperty(key.suffix(suffix)) ?: this.getProperty(key)
|
||||
if (value?.isBlank() == true) return emptyList()
|
||||
|
||||
return value?.split(' ') ?: emptyList()
|
||||
return value?.split(Regex("\\s+")) ?: emptyList()
|
||||
}
|
||||
|
||||
fun Properties.hasProperty(key: String, suffix: String? = null): Boolean
|
||||
|
||||
Reference in New Issue
Block a user