From ed857cc5bbd9d610118062d0487776dc9288bbf4 Mon Sep 17 00:00:00 2001 From: lenforiee Date: Sun, 28 Jan 2024 04:05:27 +0100 Subject: [PATCH] chore: fix song name regex on match game (#44) --- app/v1/match.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/v1/match.go b/app/v1/match.go index eb0f888..5a5b6ab 100644 --- a/app/v1/match.go +++ b/app/v1/match.go @@ -105,7 +105,7 @@ type matchDataResponse struct { CurrentGameId *int `json:"current_game_id"` } -var SongNameRegex = regexp.MustCompile(`^([^\[]+) - ([^\[]+) \[([^\[]+)\]$`) +var SongNameRegex = regexp.MustCompile(`^(.+) - (.+) \[(.+)\]$`) func splitSongName(songName string) (string, string, string) { var artist, title, version string