Skip to content

Commit b63a9c7

Browse files
committed
fix(preprocess): adapt _platform regex for 1.2.44
thanks @machinemessiah
1 parent f02128b commit b63a9c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/preprocess/preprocess.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ func exposeAPIs_main(input string) string {
488488
// Spicetify._platform
489489
utils.Replace(
490490
&input,
491-
`(setTitlebarHeight[\w(){}.,&$!=;"" ]+)(\{version:[\w$]+,)`,
491+
`(setTitlebarHeight[\w(){}>:.,&$!=;"" ]+)(\{version:[a-zA-Z_\$][\w\$]*,)`,
492492
func(submatches ...string) string {
493493
return fmt.Sprintf("%sSpicetify._platform=%s", submatches[1], submatches[2])
494494
})

0 commit comments

Comments
 (0)