Skip to content

Commit

Permalink
fix(preprocess): match more special characters for _platform
Browse files Browse the repository at this point in the history
  • Loading branch information
rxri committed Aug 24, 2024
1 parent ece3590 commit 78b60fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/preprocess/preprocess.go
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ func exposeAPIs_main(input string) string {
// Spicetify._platform
utils.Replace(
&input,
`(setTitlebarHeight[\w(){}>:.,&$!=;"" ]+)(\{version:[a-zA-Z_\$][\w\$]*,)`,
`(setTitlebarHeight[\w(){}<>:.,&$!=;""?!#% ]+)(\{version:[a-zA-Z_\$][\w\$]*,)`,
func(submatches ...string) string {
return fmt.Sprintf("%sSpicetify._platform=%s", submatches[1], submatches[2])
})
Expand Down

0 comments on commit 78b60fe

Please sign in to comment.