mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
data: Fixed separator detection
- Thanks to Sergey Trofimov
This commit is contained in:
parent
41067c01ed
commit
f8245c1552
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue