diff --git a/src/apply/apply.go b/src/apply/apply.go index f9a943d55c..52ea6c249a 100644 --- a/src/apply/apply.go +++ b/src/apply/apply.go @@ -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,