rainner / binance-watch

This application connects to the Binance.com public API to get live 24h price change data for all crypto trading pairs on their platform and allows you to set custom alerts or watch for price change in real time and get desktop notifications when something triggers your alerts or price watch settings.
MIT License
187 stars 80 forks source link

Bug in splitSymbol function #37

Closed 0toshigami closed 3 years ago

0toshigami commented 3 years ago

If the symbol contain any number (Ex: C98USDT), regexp will not split token and market exactly.

// add 0-9 to fix the problem
const regexp = new RegExp( `^([A-Z0-9]+)(${quotes})$` );
rainner commented 3 years ago

Thanks, will add it later when I have time.