From 7a53725144472b7e66bf2c3d0a0082715847ea48 Mon Sep 17 00:00:00 2001 From: ririxi Date: Thu, 6 Feb 2025 00:14:30 +0100 Subject: [PATCH] fix(homeConfig): make the regex work on more versions --- src/apply/apply.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apply/apply.go b/src/apply/apply.go index 945f67c6bc..7c424ba2aa 100644 --- a/src/apply/apply.go +++ b/src/apply/apply.go @@ -361,10 +361,10 @@ func insertHomeConfig(jsPath string, flags Flag) { return fmt.Sprintf("%sSpicetifyHomeConfig.arrange(%s)%s", submatches[1], submatches[2], submatches[3]) }) - // >= 1.2.45 + // >= 1.2.40 utils.ReplaceOnce( &content, - `(&&"HomeShortsSectionData".*\],)([a-zA-Z])(\}\)\()`, + `(&&"HomeShortsSectionData".*?[\],}])([a-zA-Z])(\}\)?\()`, func(submatches ...string) string { return fmt.Sprintf("%sSpicetifyHomeConfig.arrange(%s)%s", submatches[1], submatches[2], submatches[3]) })