Skip to content

Commit 00bddf8

Browse files
committed
add email validation method
1 parent 154f1e8 commit 00bddf8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/main/java/io/spring/Util.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@ public class Util {
44
public static boolean isEmpty(String value) {
55
return value == null || value.isEmpty();
66
}
7+
8+
public static boolean isValidEmail(String email) {
9+
return email != null && email.contains("@")
10+
}
711
}

0 commit comments

Comments
 (0)