Skip to content

Commit 6e9e76e

Browse files
committed
Fix regex rule for login
1 parent 7120e64 commit 6e9e76e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rules/Regex.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Regex
1212
public const CATEGORY_REGXP = '/^[A-Z0-9\_]+$/';
1313
public const ITEM_LINK_REGXP = '/^[a-zA-Z0-9\_\-\.]+$/';
1414
public const SERVER_REGXP = '/^([a-zA-Z]+)*$/';
15-
public const LOGIN = "/^[a-zA-Z0-9_-]{2,64}$/";
15+
public const LOGIN = "/^[a-zA-Z0-9_-]{1,64}$/";
1616
public const USERNAME = "/^\w{2,16}$/";
1717
public const UUID_NO_DASH = "/^[0-9a-f]{32}/";
1818
public const UUIDv1_AND_v4 = "/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}/";

0 commit comments

Comments
 (0)