Allow to use Regex matches CharSequence and CharSequence matches Regex in infix form

#KT-14279
This commit is contained in:
Ilya Gorbunov
2017-01-17 19:01:02 +03:00
parent 387564d140
commit 288e0b3c7e
5 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -11,8 +11,8 @@ class RegexTest {
val p = "\\d+".toRegex()
val input = "123 456 789"
assertFalse(input.matches(p))
assertFalse(p.matches(input))
assertFalse(input matches p)
assertFalse(p matches input)
assertTrue(p in input)