From 1073961a76d04a172faa2dbedaf4f839e78e69b5 Mon Sep 17 00:00:00 2001 From: Camille Chauvet Date: Wed, 4 Oct 2023 11:42:39 +0000 Subject: [PATCH] ex00: fix: data,exchange --- ex00/src/BitcoinExchange.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ex00/src/BitcoinExchange.cpp b/ex00/src/BitcoinExchange.cpp index d6dd6ca..9f6bef5 100644 --- a/ex00/src/BitcoinExchange.cpp +++ b/ex00/src/BitcoinExchange.cpp @@ -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& out) { - if (flag == DATABASE && line == "date,exchange_rate") + if (line == "date" + delimiter + "exchange_rate") return 1; if (regexec(&reegex, line.c_str(), 0, NULL, 0) == REG_NOMATCH) {