1
0
Fork 0
forked from lthn/blockchain

asset ticker/tull_name regexp updated

This commit is contained in:
sowle 2024-10-17 22:30:31 +02:00
parent 3c23d42ae4
commit 7205312837
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -4442,8 +4442,8 @@ namespace currency
}
}
//------------------------------------------------------------------
#define ASSET_TICKER_REGEXP "[A-Z0-9]{1,10}"
#define ASSET_FULL_NAME_REGEXP "[A-Za-z0-9.,:!\\-() ]{0,400}"
#define ASSET_TICKER_REGEXP "[A-Za-z0-9]{1,14}"
#define ASSET_FULL_NAME_REGEXP "[A-Za-z0-9.,:!?\\-() ]{0,400}"
bool validate_asset_ticker(const std::string& ticker)
{
static std::regex asset_ticker_regexp(ASSET_TICKER_REGEXP);