From fa45d7afdb7b58d358cf79b58c507f586f3a9a58 Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Tue, 4 Jun 2024 22:19:54 +0200 Subject: [PATCH] Made ticker format more flexible --- fin_defs/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fin_defs/__init__.py b/fin_defs/__init__.py index bba5de2..9e66851 100644 --- a/fin_defs/__init__.py +++ b/fin_defs/__init__.py @@ -10,7 +10,7 @@ import enforce_typing ## Ids RE_TICKER_FORMAT = r'^[A-Z0-9_]+$' -RE_TICKER_FORMAT_FLEXIBLE = r'^[^:\s]+$' +RE_TICKER_FORMAT_FLEXIBLE = r'^[^:\s](?:[^:]*[^:\s])?$' RE_CRYPTO_TICKER_FORMAT = r'^\S+$'