We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d565759 commit c91a162Copy full SHA for c91a162
kata/5-kyu/regex-password-validation/main/PasswordRegex.java
@@ -1,3 +1,5 @@
1
-interface PasswordRegex {
2
- String REGEX = "^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)[a-zA-Z\\d]{6,}$";
+final class PasswordRegex {
+ static final String REGEX = "(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)[a-zA-Z\\d]{6,}";
3
+
4
+ private PasswordRegex() {}
5
}
0 commit comments