forked from lthn/blockchain
asset ticker/tull_name regexp updated
This commit is contained in:
parent
3c23d42ae4
commit
7205312837
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue