diff --git a/src/preprocess/preprocess.go b/src/preprocess/preprocess.go index 63f2d447fc..d5cc2acb01 100644 --- a/src/preprocess/preprocess.go +++ b/src/preprocess/preprocess.go @@ -341,7 +341,7 @@ Spicetify.React.useEffect(() => { // React Component: Context Menu - Menu Item utils.Replace( &input, - `=\w+=>\{let\{children:\w+,icon:\w+`, + `=(?:\w+=>|function)(?:\{let|\(\w+\)\{var \w+,\w+=\w+.children,\w+=\w+.icon)(?:\{children:\w+,icon:\w+)?`, `=Spicetify.ReactComponent.MenuItem${0}`) // React Component: Album Context Menu items