mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 00:23:07 +00:00
@@ -30,7 +30,7 @@ def expand_pairlist(wildcardpl: List[str], available_pairs: List[str],
|
||||
raise ValueError(f"Wildcard error in {pair_wc}, {err}")
|
||||
|
||||
for element in result:
|
||||
if not re.fullmatch(r'^[A-Za-z0-9/-]+$', element):
|
||||
if not re.fullmatch(r'^[A-Za-z0-9:/-]+$', element):
|
||||
result.remove(element)
|
||||
else:
|
||||
for pair_wc in wildcardpl:
|
||||
|
||||
@@ -1370,7 +1370,9 @@ def test_expand_pairlist(wildcardlist, pairs, expected):
|
||||
(['BTC/USD'],
|
||||
['BTC/USD', 'BTC/USDT'],
|
||||
['BTC/USD']),
|
||||
|
||||
(['BTC/USDT:USDT'],
|
||||
['BTC/USDT:USDT', 'BTC/USDT'],
|
||||
['BTC/USDT:USDT']),
|
||||
])
|
||||
def test_expand_pairlist_keep_invalid(wildcardlist, pairs, expected):
|
||||
if expected is None:
|
||||
|
||||
Reference in New Issue
Block a user