From 47cdf7240403a5cd3d36904aed09744f38c811a9 Mon Sep 17 00:00:00 2001 From: Holden Salomon Date: Sun, 12 Jul 2026 21:00:54 -0400 Subject: [PATCH] Update patch_ui.py --- patch/patch_ui.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/patch/patch_ui.py b/patch/patch_ui.py index a390323..a5f7240 100644 --- a/patch/patch_ui.py +++ b/patch/patch_ui.py @@ -34,8 +34,9 @@ WEBUI_CANDIDATES = [ # Each entry is (compiled_regex, replacement_string). _PATTERNS = [ # TrueNAS 25.x+: Angular emits a pureFunction call instead of a literal array. - (re.compile(r'("filterByProviders",)\w+(\d+,\w+,\w+.CloudSyncProviderName.Storj)'), - r'\1["STORJ_IX","S3","B2"]'), + (re.compile(r'("filterByProviders",)\w+\(\d+,\w+,\w+\.CloudSyncProviderName\.Storj\)'), + r'\1["STORJ_IX","S3","B2"])'), + # TrueNAS 24.x and earlier: static inline array. (re.compile(r'("filterByProviders",)\["STORJ_IX"\]'), r'\1["STORJ_IX","S3","B2"]'),