Skip to content

Commit

Permalink
Ignore case on shortcuts.vdf regex
Browse files Browse the repository at this point in the history
There's a project called "pysteam" that is generating shortcuts with
different cases than Steam.
  • Loading branch information
boppreh committed Feb 17, 2015
1 parent 29cdd76 commit 95061fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion games.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func addNonSteamGames(user User, games map[string]*Game) {

// The actual binary format is known, but using regexes is way easier than
// parsing the entire file. If I run into any problems I'll replace this.
gamePattern := regexp.MustCompile("appname\x00(.+?)\x00\x01exe\x00(.+?)\x00\x01.+?\x00tags\x00(.*?)\x08\x08")
gamePattern := regexp.MustCompile("(?i)appname\x00(.+?)\x00\x01exe\x00(.+?)\x00\x01.+?\x00tags\x00(.*?)\x08\x08")
tagsPattern := regexp.MustCompile("\\d\x00(.+?)\x00")
for _, gameGroups := range gamePattern.FindAllSubmatch(shortcutBytes, -1) {
gameName := gameGroups[1]
Expand Down

0 comments on commit 95061fc

Please sign in to comment.