From 0eefd29446c7a285a2b389126c1d3fb777a696df Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Wed, 28 Jun 2023 19:44:16 +0200 Subject: [PATCH] Use Matcher.find() instead of Matcher.match() --- .../src/main/kotlin/org/pgpainless/wot/dijkstra/sq/RegexSet.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } }