Rename split method to splitBy and revive old split implementation interpreting parameter as regex to provide the migration path.
This commit is contained in:
committed by
Ilya Gorbunov
parent
b10d869cd7
commit
b3165ac771
@@ -479,7 +479,7 @@ class CollectionTest {
|
||||
}
|
||||
|
||||
test fun decomposeSplit() {
|
||||
val (key, value) = "key = value".split("=").map { it.trim() }
|
||||
val (key, value) = "key = value".splitBy("=").map { it.trim() }
|
||||
assertEquals(key, "key")
|
||||
assertEquals(value, "value")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user