From 2ebcf63643061764b66ba71278018b0d2baf3d40 Mon Sep 17 00:00:00 2001 From: Sten Laane <21343173+StenAL@users.noreply.github.com> Date: Tue, 28 May 2024 12:57:00 +0300 Subject: [PATCH] Client: Convert UsernameValidator line separators from CRLF to LF All other files in the client project use LF line endings. Done with `find client -type f | xargs dos2unix` --- .../aapeli/multiuser/UsernameValidator.java | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/client/src/main/java/com/aapeli/multiuser/UsernameValidator.java b/client/src/main/java/com/aapeli/multiuser/UsernameValidator.java index 78848f14..8d79f101 100644 --- a/client/src/main/java/com/aapeli/multiuser/UsernameValidator.java +++ b/client/src/main/java/com/aapeli/multiuser/UsernameValidator.java @@ -1,13 +1,13 @@ -package com.aapeli.multiuser; - -import java.util.regex.Pattern; - -public class UsernameValidator { - public static Pattern INVALID_VALID_USERNAME_PATTERN = Pattern.compile("[^a-zA-Z0-9 ]"); - - public static boolean isValidUsername(String username) { - boolean invalid = INVALID_VALID_USERNAME_PATTERN.matcher(username).find() || username.trim().isEmpty(); - return !invalid; - - } -} +package com.aapeli.multiuser; + +import java.util.regex.Pattern; + +public class UsernameValidator { + public static Pattern INVALID_VALID_USERNAME_PATTERN = Pattern.compile("[^a-zA-Z0-9 ]"); + + public static boolean isValidUsername(String username) { + boolean invalid = INVALID_VALID_USERNAME_PATTERN.matcher(username).find() || username.trim().isEmpty(); + return !invalid; + + } +}