Fix split method usage in JS: split replaced with splitWithRegex or splitBy.

This commit is contained in:
Ilya Gorbunov
2015-03-31 16:09:11 +03:00
parent 95c2a4fb29
commit b930f71b79
2 changed files with 3 additions and 3 deletions
@@ -133,7 +133,7 @@ fun <T, C : MutableCollection<T>> Array<T>.to(result: C): C {
}
fun makeField(s: String): Field {
val lines: Array<String> = s.split("\n")
val lines: List<String> = s.splitBy("\n")
val w = max<String>(lines.toList(), comparator<String> { o1, o2 ->
val l1: Int = o1.size