data: Fixed separator detection

- Thanks to Sergey Trofimov
This commit is contained in:
Paul Beckingham 2016-06-07 06:55:32 -04:00
parent 41067c01ed
commit f8245c1552

View file

@ -653,9 +653,7 @@ Interval getLatestInterval (Database& database)
{
// inc YYYYMMDDTHHMMSSZ - YYYYMMDDTHHMMSSZ # ...
// ^ 20
auto separator = line.find (" - ");
if (separator != std::string::npos ||
separator != 20)
if (line.find (" - ") != 20)
{
i.initialize (line);
return i;