mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-12 15:32:06 +01:00
Use Matcher.find() instead of Matcher.match()
This commit is contained in:
parent
2922bc5bd6
commit
0eefd29446
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ data class RegexSet(val regexStrings: Set<String>) {
|
||||||
|
|
||||||
for (regex in regexStrings) {
|
for (regex in regexStrings) {
|
||||||
val matcher = Pattern.compile(regex).matcher(string)
|
val matcher = Pattern.compile(regex).matcher(string)
|
||||||
if (matcher.matches()) {
|
if (matcher.find()) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue