Adds constructor to DualCase class
This commit is contained in:
@@ -112,4 +112,6 @@ fun String.startsWithAny(terms: List<DualCase>): Boolean {
|
|||||||
class DualCase(
|
class DualCase(
|
||||||
val lowercase: String,
|
val lowercase: String,
|
||||||
val uppercase: String,
|
val uppercase: String,
|
||||||
)
|
) {
|
||||||
|
constructor(anyCase: String) : this(anyCase.lowercase(), anyCase.uppercase())
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user