We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 463a152 commit daa8aaaCopy full SHA for daa8aaa
utbot-fuzzers/src/main/kotlin/org/utbot/fuzzer/providers/RegexModelProvider.kt
@@ -56,9 +56,10 @@ object RegexModelProvider : ModelProvider {
56
57
private fun FuzzedContext.isPatterMatchingContext(): Boolean {
58
if (this !is FuzzedContext.Call) return false
59
+ val stringMethodWithRegexArguments = setOf("matches", "split")
60
return when {
61
method.classId == Pattern::class.java.id -> true
- method.classId == String::class.java.id && method.name == "matches" -> true
62
+ method.classId == String::class.java.id && stringMethodWithRegexArguments.contains(method.name) -> true
63
else -> false
64
}
65
0 commit comments