Update patch_ui.py
This commit is contained in:
+2
-1
@@ -34,9 +34,10 @@ WEBUI_CANDIDATES = [
|
|||||||
# Each entry is (compiled_regex, replacement_string).
|
# Each entry is (compiled_regex, replacement_string).
|
||||||
_PATTERNS = [
|
_PATTERNS = [
|
||||||
# TrueNAS 25.x+: Angular emits a pureFunction call instead of a literal array.
|
# TrueNAS 25.x+: Angular emits a pureFunction call instead of a literal array.
|
||||||
(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"])'),
|
r'\1["STORJ_IX","S3","B2"])'),
|
||||||
|
|
||||||
|
|
||||||
# TrueNAS 24.x and earlier: static inline array.
|
# TrueNAS 24.x and earlier: static inline array.
|
||||||
(re.compile(r'("filterByProviders",)\["STORJ_IX"\]'),
|
(re.compile(r'("filterByProviders",)\["STORJ_IX"\]'),
|
||||||
r'\1["STORJ_IX","S3","B2"]'),
|
r'\1["STORJ_IX","S3","B2"]'),
|
||||||
|
|||||||
Reference in New Issue
Block a user