[K/N][stdlib] Fix cases with existing pattern before matched with dot quantifier interval in regular expressions implementation(^KT-49967 Fixed)

This commit is contained in:
Elena Lepilkina
2021-12-03 11:21:07 +03:00
committed by Space
parent 9c90d4e471
commit 219d9707ec
3 changed files with 10 additions and 3 deletions
@@ -1253,4 +1253,11 @@ class PatternTest {
regex = Regex(patString, RegexOption.DOT_MATCHES_ALL)
assertFalse(regex.containsMatchIn(testString))
}
@Test fun testFailedFindDotQuantifier() {
val regex = Regex("For.+ \\(1\\)")
val result = regex.find("This is good (1), For You")
assertNull(result)
}
}