StdLib deprecations cleanup: string operations.

This commit is contained in:
Ilya Gorbunov
2015-06-25 22:28:29 +03:00
parent 86f4a1b6e4
commit 35166f44ae
7 changed files with 20 additions and 19 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ public var Element.classes: String
}
/** Returns true if the element has the given CSS class style in its 'class' attribute */
public fun Element.hasClass(cssClass: String): Boolean = classes.matches("""(^|.*\s+)$cssClass($|\s+.*)""")
public fun Element.hasClass(cssClass: String): Boolean = classes.matches("""(^|.*\s+)$cssClass($|\s+.*)""".toRegex())
/** Returns the children of the element as a list */