mirror of
https://gitlab.com/simple-stock-bots/simple-stock-bot.git
synced 2025-06-16 15:17:28 +00:00
changed max length of symbol regexes
This commit is contained in:
parent
2844fd2a55
commit
f1838ba012
@ -15,8 +15,8 @@ from Symbol import Symbol, Stock, Coin
|
|||||||
|
|
||||||
|
|
||||||
class Router:
|
class Router:
|
||||||
STOCK_REGEX = "(?:^|[^\\$])\\$([a-zA-Z]{1,4})"
|
STOCK_REGEX = "(?:^|[^\\$])\\$([a-zA-Z]{1,6})"
|
||||||
CRYPTO_REGEX = "[$]{2}([a-zA-Z]{1,9})"
|
CRYPTO_REGEX = "[$]{2}([a-zA-Z]{1,20})"
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.stock = IEX_Symbol()
|
self.stock = IEX_Symbol()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user