Skip to content

Commit

Permalink
fix(preprocess): adapt _platform regex for 1.2.44
Browse files Browse the repository at this point in the history
  • Loading branch information
rxri committed Aug 12, 2024
1 parent f02128b commit b63a9c7
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:[\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 b63a9c7

Please sign in to comment.