Skip to content

Commit

Permalink
Use partial matche instead of exact matche
Browse files Browse the repository at this point in the history
  • Loading branch information
tsujiguchitky committed Feb 3, 2020
1 parent 2c02ecd commit f7741c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ public static boolean isSupportedClient(HttpServletRequest request) {
} else {
for (Pattern p : ptternSet) {
Matcher matcher = p.matcher(userAgent);
if (matcher.matches()) {
if (matcher.find()) {
return false;
}
}
}
return true;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@

# Specify User-Agent of SameSite incompatible browsers with regular expression.
# The property key can be any value.
iOS_12=.*\\(iP.+; CPU .*OS 12[_\\d]*.*\\) AppleWebKit\\/.*
macOS_10_14_Safari=.*\\(Macintosh;.*Mac OS X 10_14[_\\d]*.*\\) AppleWebKit\\/.*Version.*
iOS_12=\\(iP.+; CPU .*OS 12[_\\d]*.*\\) AppleWebKit\\/
macOS_10_14_Safari=\\(Macintosh;.*Mac OS X 10_14[_\\d]*.*\\) AppleWebKit\\/.*Version

0 comments on commit f7741c5

Please sign in to comment.