Skip to content

Commit a6e779c

Browse files
committed
fix(preprocess): adapt Platform regex due to URL in the chunk
1 parent c430e68 commit a6e779c

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
@@ -914,7 +914,7 @@ func exposeAPIs_main(input string) string {
914914
},
915915
{
916916
Name: "Expose PlatformAPI",
917-
Regex: `((?:setTitlebarHeight|registerFactory)[\w(){}<>:.,&$!=;""?!#% ]+)(\{version:[a-zA-Z_\$][\w\$]*,)`,
917+
Regex: `((?:setTitlebarHeight|registerFactory)[\w(){}<>:.,&$!=;""?!#%/\- ]+)(\{version:[a-zA-Z_\$][\w\$]*,)`,
918918
Replacement: func(submatches ...string) string {
919919
return fmt.Sprintf("%sSpicetify._platform=%s", submatches[1], submatches[2])
920920
},

0 commit comments

Comments
 (0)