ex00: fix: data,exchange
This commit is contained in:
parent
a4e5a100b3
commit
1073961a76
@ -80,7 +80,7 @@ static int check_value(const std::string& value_str, int flag, float& out)
|
|||||||
|
|
||||||
static int check_line(const std::string& line, regex_t& reegex, const std::string& delimiter, int flag, std::pair<unsigned int, float>& out)
|
static int check_line(const std::string& line, regex_t& reegex, const std::string& delimiter, int flag, std::pair<unsigned int, float>& out)
|
||||||
{
|
{
|
||||||
if (flag == DATABASE && line == "date,exchange_rate")
|
if (line == "date" + delimiter + "exchange_rate")
|
||||||
return 1;
|
return 1;
|
||||||
if (regexec(&reegex, line.c_str(), 0, NULL, 0) == REG_NOMATCH)
|
if (regexec(&reegex, line.c_str(), 0, NULL, 0) == REG_NOMATCH)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user