Update EmailValidation.java
This commit is contained in:
parent
a0c85c2a5a
commit
23c11caf77
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue