Skip to content

Commit

Permalink
fix: add support for 1.1.99 (spicetify#2018)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyrie25 authored Nov 22, 2022
1 parent 0ba45a0 commit 44543e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apply/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func getColorCSS(scheme map[string]string) string {
func insertCustomApp(jsPath string, flags Flag) {
utils.ModifyFile(jsPath, func(content string) string {
const REACT_REGEX = `(\w+(?:\(\))?)\.lazy\(\((?:\(\)=>|function\(\)\{return )(\w+)\.(\w+)\(\d+\)\.then\(\w+\.bind\(\w+,\d+\)\)\}?\)\)`
const REACT_ELEMENT_REGEX = `(\w+(?:\(\))?\.createElement|\([\w$\.,]+\))\(([\w\.]+),\{path:"\/collection"(?:,[:\.\w,\{\}\(\)]+)?\}`
const REACT_ELEMENT_REGEX = `(\w+(?:\(\))?\.createElement|\([\w$\.,]+\))\(([\w\.]+),\{path:"\/collection"(?:,[:.\w,{}()/*"]+)?\}`
reactSymbs := utils.FindSymbol(
"Custom app React symbols",
content,
Expand Down

0 comments on commit 44543e7

Please sign in to comment.