Skip to content

Commit 9a5eb09

Browse files
committed
Allow hyphens in csnum to account for bugged dolphin serials
1 parent ecc5798 commit 9a5eb09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/query.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var (
3939
ErrInvalidHasBan = errors.New("HasBan must be either 0 (Either), 1 (No Ban), 2 (Ban)")
4040
ErrEmptyParams = errors.New("At least one of IP, Csnum, DeviceID, or DiscordID must be nonzero or nonempty")
4141
ipRegex = regexp.MustCompile(`^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$`)
42-
csnumRegex = regexp.MustCompile(`^[a-zA-Z0-9]+$`)
42+
csnumRegex = regexp.MustCompile(`^[a-zA-Z0-9-]+$`)
4343
numOnlyRegex = regexp.MustCompile("^[0-9]+$")
4444
)
4545

0 commit comments

Comments
 (0)