Merge pull request #9837 from ethereum/fix-isoltest-regex-not-accepting-zero

Allow using zero in patterns passed to isoltest --test
This commit is contained in:
Kamil Śliwak 2020-09-17 19:02:44 +02:00 committed by GitHub
commit b571fd05b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,7 +77,7 @@ bool IsolTestOptions::parse(int _argc, char const* const* _argv)
void IsolTestOptions::validate() const
{
static std::string filterString{"[a-zA-Z1-9_/*]*"};
static std::string filterString{"[a-zA-Z0-9_/*]*"};
static std::regex filterExpression{filterString};
assertThrow(
regex_match(testFilter, filterExpression),