Rename Regex.hasMatch to containsMatchIn, and add corresponding contains function to CharSequence.

This commit is contained in:
Ilya Gorbunov
2015-10-14 18:46:14 +03:00
parent d1d865aa0f
commit 43bb9347c6
4 changed files with 17 additions and 5 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ class RegexTest {
assertFalse(input.matches(p))
assertFalse(p.matches(input))
assertTrue(p.hasMatch(input))
assertTrue(p in input)
val first = p.find(input)
assertTrue(first != null); first!!