CmdEdit: Migrated from Nibbler to Pig
This commit is contained in:
@@ -37,7 +37,7 @@
|
|||||||
#include <Context.h>
|
#include <Context.h>
|
||||||
#include <Lexer.h>
|
#include <Lexer.h>
|
||||||
#include <Filter.h>
|
#include <Filter.h>
|
||||||
#include <Nibbler.h>
|
#include <Pig.h>
|
||||||
#include <i18n.h>
|
#include <i18n.h>
|
||||||
#include <text.h>
|
#include <text.h>
|
||||||
#include <util.h>
|
#include <util.h>
|
||||||
@@ -710,10 +710,10 @@ void CmdEdit::parseTask (Task& task, const std::string& after, const std::string
|
|||||||
}
|
}
|
||||||
else if (type == "numeric")
|
else if (type == "numeric")
|
||||||
{
|
{
|
||||||
Nibbler n (value);
|
Pig pig (value);
|
||||||
double d;
|
double d;
|
||||||
if (n.getNumber (d) &&
|
if (pig.getNumber (d) &&
|
||||||
n.depleted ())
|
pig.eos ())
|
||||||
task.set (col.first, value);
|
task.set (col.first, value);
|
||||||
else
|
else
|
||||||
throw format (STRING_UDA_NUMERIC, value);
|
throw format (STRING_UDA_NUMERIC, value);
|
||||||
|
|||||||
Reference in New Issue
Block a user