File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -110,8 +110,8 @@ func addNonSteamGames(user User, games map[string]*Game) {
110
110
111
111
// The actual binary format is known, but using regexes is way easier than
112
112
// parsing the entire file. If I run into any problems I'll replace this.
113
- gamePattern := regexp .MustCompile ("(?i)\x00 \x01 appname\x00 (. +?)\x00 \x01 exe\x00 (. +?)\x00 \x01 . +?\x00 tags\x00 \x01 (.*? )\x08 \x08 " )
114
- tagsPattern := regexp .MustCompile ("\\ d\x00 (. +?)\x00 " )
113
+ gamePattern := regexp .MustCompile ("(?i)\x00 \x01 appname\x00 ([^ \x08 ] +?)\x00 \x01 exe\x00 ([^ \x08 ] +?)\x00 \x01 [^ \x08 ] +?\x00 tags\x00 (?: \x01 ([^ \x08 ]+?)| )\x08 \x08 " )
114
+ tagsPattern := regexp .MustCompile ("\\ d\x00 ([^ \x00 \x01 \x08 ] +?)\x00 " )
115
115
for _ , gameGroups := range gamePattern .FindAllSubmatch (shortcutBytes , - 1 ) {
116
116
gameName := gameGroups [1 ]
117
117
target := gameGroups [2 ]
You can’t perform that action at this time.
0 commit comments