Fix to tolerate double quote characters in header line

This commit is contained in:
GPayne
2023-05-31 00:05:54 -06:00
parent ebfada0842
commit ec11d3686c

View File

@@ -608,6 +608,8 @@ std::vector<Parameters> readSbdbFile(std::filesystem::path file) {
std::string line;
std::getline(f, line);
// Newer versions downloaded from the JPL SBDB website have " around variables
line.erase(remove(line.begin(), line.end(), '\"'), line.end());
if (line != ExpectedHeader) {
throw ghoul::RuntimeError(fmt::format(
"Expected JPL SBDB file to start with '{}' but found '{}' instead",