mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Lexer
- Legacy date parsing should not permis ISO and epoch inputs.
This commit is contained in:
parent
9b03e8f9f7
commit
5150e49f67
1 changed files with 1 additions and 1 deletions
|
@ -666,7 +666,7 @@ bool Lexer::is_date (std::string& result)
|
|||
legacy_i = _input.length ();
|
||||
|
||||
std::string legacy_result = _input.substr (_shift_counter, legacy_i - _shift_counter);
|
||||
Date legacyDate (legacy_result, Lexer::dateFormat, true, false);
|
||||
Date legacyDate (legacy_result, Lexer::dateFormat, false, false);
|
||||
|
||||
legacy_i -= _shift_counter;
|
||||
while (legacy_i--) shift ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue