Skip to content

Commit c91a162

Browse files
committed
refactor: move constants defined in this interfaces to another class or enum.
1 parent d565759 commit c91a162

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
interface PasswordRegex {
2-
String REGEX = "^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)[a-zA-Z\\d]{6,}$";
1+
final class PasswordRegex {
2+
static final String REGEX = "(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)[a-zA-Z\\d]{6,}";
3+
4+
private PasswordRegex() {}
35
}

0 commit comments

Comments
 (0)