mirror of
https://gitlab.com/simple-stock-bots/simple-telegram-stock-bot.git
synced 2025-06-16 15:06:53 +00:00
added support for stock symbols using '.'
This commit is contained in:
parent
2fa26c4662
commit
08f140af8e
@ -16,7 +16,7 @@ from Symbol import Symbol, Stock, Coin
|
|||||||
|
|
||||||
|
|
||||||
class Router:
|
class Router:
|
||||||
STOCK_REGEX = "(?:^|[^\\$])\\$([a-zA-Z]{1,6})"
|
STOCK_REGEX = "(?:^|[^\\$])\\$([a-zA-Z.]{1,6})"
|
||||||
CRYPTO_REGEX = "[$]{2}([a-zA-Z]{1,20})"
|
CRYPTO_REGEX = "[$]{2}([a-zA-Z]{1,20})"
|
||||||
searched_symbols = {}
|
searched_symbols = {}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user