1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-09-26 17:49:34 +02:00

Use Matcher.find() instead of Matcher.match()

This commit is contained in:
Paul Schaub 2023-06-28 19:44:16 +02:00
parent 2922bc5bd6
commit 0eefd29446
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -32,7 +32,7 @@ data class RegexSet(val regexStrings: Set<String>) {
for (regex in regexStrings) {
val matcher = Pattern.compile(regex).matcher(string)
if (matcher.matches()) {
if (matcher.find()) {
return true
}
}