Skip to content

Commit

Permalink
chore: fix song name regex on match game (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
lenforiee authored Jan 28, 2024
1 parent 62449c1 commit ed857cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/v1/match.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ed857cc

Please sign in to comment.