code cleanup

This commit is contained in:
2022-05-15 14:22:15 +02:00
parent 49344e0a04
commit e3ee2a5e08
2 changed files with 4 additions and 17 deletions

View File

@@ -10,7 +10,7 @@ import (
//goland:noinspection SpellCheckingInspection
var DICT = "ABCDEFGHJKLMNOPQRSTUVWXYZabcdefhijkmnopqrstuvwxyz23456789"
var sharecodeRexEx = regexp.MustCompile("^CSGO(?:-?[\\w]{5}){5}$")
var sharecodeRexEx = regexp.MustCompile("^CSGO(?:-?\\w{5}){5}$")
func DecodeSharecode(code string) (uint64, uint64, uint16, error) {
if !sharecodeRexEx.MatchString(code) {