mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CmdEdit: Migrated from Nibbler to Pig
This commit is contained in:
parent
0400d99c7a
commit
363415878c
1 changed files with 4 additions and 4 deletions
|
@ -37,7 +37,7 @@
|
|||
#include <Context.h>
|
||||
#include <Lexer.h>
|
||||
#include <Filter.h>
|
||||
#include <Nibbler.h>
|
||||
#include <Pig.h>
|
||||
#include <i18n.h>
|
||||
#include <text.h>
|
||||
#include <util.h>
|
||||
|
@ -710,10 +710,10 @@ void CmdEdit::parseTask (Task& task, const std::string& after, const std::string
|
|||
}
|
||||
else if (type == "numeric")
|
||||
{
|
||||
Nibbler n (value);
|
||||
Pig pig (value);
|
||||
double d;
|
||||
if (n.getNumber (d) &&
|
||||
n.depleted ())
|
||||
if (pig.getNumber (d) &&
|
||||
pig.eos ())
|
||||
task.set (col.first, value);
|
||||
else
|
||||
throw format (STRING_UDA_NUMERIC, value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue