From 8b6842c0e013693caeaab12303cfc62276afcd25 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Mon, 11 Apr 2022 11:36:04 -0400 Subject: [PATCH] Ignore EXLT header string in exl files --- src/exlparser.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/exlparser.cpp b/src/exlparser.cpp index 97f9f73..c385d48 100644 --- a/src/exlparser.cpp +++ b/src/exlparser.cpp @@ -18,9 +18,12 @@ EXL readEXL(std::string_view path) { const size_t comma = line.find_first_of(','); std::string name = line.substr(0, comma); - std::string id = line.substr(comma + 1, line.length()); - exl.rows.push_back({name, std::stoi(id)}); + if(name != "EXLT") { + std::string id = line.substr(comma + 1, line.length()); + + exl.rows.push_back({name, std::stoi(id)}); + } } return exl;