diff --git a/wot-dijkstra/src/main/kotlin/org/pgpainless/wot/dijkstra/sq/RegexSet.kt b/wot-dijkstra/src/main/kotlin/org/pgpainless/wot/dijkstra/sq/RegexSet.kt index c2230f0d..8af6b95b 100644 --- a/wot-dijkstra/src/main/kotlin/org/pgpainless/wot/dijkstra/sq/RegexSet.kt +++ b/wot-dijkstra/src/main/kotlin/org/pgpainless/wot/dijkstra/sq/RegexSet.kt @@ -32,7 +32,7 @@ data class RegexSet(val regexStrings: Set) { for (regex in regexStrings) { val matcher = Pattern.compile(regex).matcher(string) - if (matcher.matches()) { + if (matcher.find()) { return true } }