Update EmailValidation.java

This commit is contained in:
Ashish Gupta 2021-09-12 13:19:16 +05:30 committed by GitHub
parent a0c85c2a5a
commit 23c11caf77
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ import java.util.regex.Pattern;
public class EmailValidation {
public static boolean patternMatcher(String emailAddress, String regexPattern) {
public static boolean patternMatches(String emailAddress, String regexPattern) {
return Pattern.compile(regexPattern)
.matcher(emailAddress)
.matches();