Update patch_ui.py

This commit is contained in:
2026-07-12 20:49:03 -04:00
committed by GitHub
parent 150a241a0f
commit f2d57420fb
+1 -3
View File
@@ -34,9 +34,7 @@ WEBUI_CANDIDATES = [
# Each entry is (compiled_regex, replacement_string).
_PATTERNS = [
# TrueNAS 25.x+: Angular emits a pureFunction call instead of a literal array.
# pe / slot-index / factory-var / component-var are all minified and change
# across builds; CloudSyncProviderName.Storj is stable (TypeScript enum name).
(re.compile(r'("filterByProviders",)\w+\(\d+,\w+,\w+\.CloudSyncProviderName\.Storj\)'),
(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"\]'),