Rename Pattern to Regex.

toRegex now converts string to our regex, and toPattern converts to JVM Pattern.
This commit is contained in:
Ilya Gorbunov
2015-04-09 16:16:52 +03:00
parent a4784dfa78
commit 559c1604d7
13 changed files with 52 additions and 50 deletions
+1 -1
View File
@@ -121,7 +121,7 @@ public fun Node.previousElements(): List<Element> = previousSiblings().filterIsI
public var Element.classSet: MutableSet<String>
get() {
val answer = LinkedHashSet<String>()
val array = this.classes.split("""\s""".toRegex())
val array = this.classes.split("""\s""".toPattern())
for (s in array) {
if (s.length() > 0) {
answer.add(s)