[properties] naive prioritize suffixed keys against unsuffixed
This commit is contained in:
committed by
Vasily Levchenko
parent
b6ca104bd0
commit
dd39219ee4
@@ -38,8 +38,7 @@ fun File.saveProperties(properties: Properties) {
|
|||||||
|
|
||||||
fun Properties.saveToFile(file: File) = file.saveProperties(this)
|
fun Properties.saveToFile(file: File) = file.saveProperties(this)
|
||||||
|
|
||||||
fun Properties.propertyString(key: String, suffix: String? = null): String?
|
fun Properties.propertyString(key: String, suffix: String? = null): String? = getProperty(key.suffix(suffix)) ?: this.getProperty(key)
|
||||||
= this.getProperty(key.suffix(suffix))
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO: this method working with suffixes should be replaced with
|
* TODO: this method working with suffixes should be replaced with
|
||||||
|
|||||||
Reference in New Issue
Block a user