From a4f3a57f977ac14523b053f85a3a3bac9f581a2d Mon Sep 17 00:00:00 2001 From: kitbyte Date: Fri, 15 May 2026 19:43:48 +0300 Subject: [PATCH] feat: revert patch config regex, update changelog for version 1.0.8.2 --- CHANGELOG.md | 6 ++++++ WandEnhancer/Core/EnhancerConfig.cs | 4 +++- WandEnhancer/Properties/AssemblyInfo.cs | 4 ++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index acf2622..1390312 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,12 @@ This file is the source of truth for release notes. The newest entry must match the version in `WandEnhancer/Properties/AssemblyInfo.cs`. +## [1.0.8.2] - 2026-05-15 + +### Fixes + +- Rolled back an incorrect Disable Updates patch fix that introduced a `SyntaxError` preventing Wand from launching. + ## [1.0.8.1] - 2026-05-15 ### Fixes diff --git a/WandEnhancer/Core/EnhancerConfig.cs b/WandEnhancer/Core/EnhancerConfig.cs index ec15621..5cd1b07 100644 --- a/WandEnhancer/Core/EnhancerConfig.cs +++ b/WandEnhancer/Core/EnhancerConfig.cs @@ -79,13 +79,15 @@ namespace WandEnhancer.Core EPatchType.DisableUpdates, new[] { + // Regex consumes 4 closing parens (`)))) `); the 5th (registerHandler's own close) + // remains in the original file after replacement. Patch must end with 3 parens — NOT 4. new PatchEntry { CandidateFileNames = new[] { "index.js" }, SearchHints = new[] { "ACTION_CHECK_FOR_UPDATE" }, Target = new Regex(@"registerHandler\(""ACTION_CHECK_FOR_UPDATE"".*?\)\)\)\)", RegexOptions.Singleline), - Patch = "registerHandler(\"ACTION_CHECK_FOR_UPDATE\",(e=>expectUpdateFeedUrl(e,(e=>null))))" + Patch = "registerHandler(\"ACTION_CHECK_FOR_UPDATE\",(e=>expectUpdateFeedUrl(e,(e=>null)))" } } }, diff --git a/WandEnhancer/Properties/AssemblyInfo.cs b/WandEnhancer/Properties/AssemblyInfo.cs index 0ee02ba..7c3b82b 100644 --- a/WandEnhancer/Properties/AssemblyInfo.cs +++ b/WandEnhancer/Properties/AssemblyInfo.cs @@ -51,5 +51,5 @@ using System.Windows; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.8.1")] -[assembly: AssemblyFileVersion("1.0.8.1")] \ No newline at end of file +[assembly: AssemblyVersion("1.0.8.2")] +[assembly: AssemblyFileVersion("1.0.8.2")] \ No newline at end of file