Skip to content

Commit

Permalink
Apply linter fixes v.6
Browse files Browse the repository at this point in the history
  • Loading branch information
lysalexy committed Jan 11, 2024
1 parent 35fd0eb commit 845aa13
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/org/example/service/AccountService.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import java.util.HexFormat;
import java.util.Optional;
import java.util.regex.Pattern;

import lombok.RequiredArgsConstructor;
import org.example.entities.user.Role;
import org.example.entities.user.UserAccount;
Expand All @@ -36,7 +35,7 @@ public class AccountService {

public UserAccount register(String fullName, String phone, String password) {
String FIORegex =
"^[А-ЯЁ][а-яё]{2,}([-][А-ЯЁ][а-яё]{2,})?\\s[А-ЯЁ][а-яё]{2,}(\\s[А-ЯЁ][а-яё]{2,})?$";
"^[А-ЯЁ][а-яё]{2,}([-][А-ЯЁ][а-яё]{2,})?\\s[А-ЯЁ][а-яё]{2,}(\\s[А-ЯЁ][а-яё]{2,})?$";
String phoneNumberRegex = "^\\+7[0-9]{10}$";
String passwordRegex = "^(([A-z0-9]){6,16})$";

Expand Down

0 comments on commit 845aa13

Please sign in to comment.