Relax whitespace requirements for lists in Property files.

This commit is contained in:
Alexander Gorshenev
2017-10-17 17:37:08 +03:00
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