Update patch_ui.py

This commit is contained in:
2026-07-12 21:00:54 -04:00
committed by GitHub
parent f2d57420fb
commit 47cdf72404
+3 -2
View File
@@ -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"]'),