mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-20 04:13:07 +02:00
ISO8601d: Added ::minimumMatchLength
This commit is contained in:
parent
541e9eec30
commit
6f726bf1cf
3 changed files with 6 additions and 3 deletions
|
@ -622,8 +622,9 @@ void Context::getLimits (int& rows, int& lines)
|
|||
// easier, it has been decoupled from Context.
|
||||
void Context::staticInitialization ()
|
||||
{
|
||||
CLI2::minimumMatchLength = config.getInteger ("abbreviation.minimum");
|
||||
Lexer::minimumMatchLength = config.getInteger ("abbreviation.minimum");
|
||||
CLI2::minimumMatchLength = config.getInteger ("abbreviation.minimum");
|
||||
Lexer::minimumMatchLength = config.getInteger ("abbreviation.minimum");
|
||||
ISO8601d::minimumMatchLength = config.getInteger ("abbreviation.minimum");
|
||||
|
||||
Task::defaultProject = config.get ("default.project");
|
||||
Task::defaultDue = config.get ("default.due");
|
||||
|
|
|
@ -106,7 +106,8 @@ static struct
|
|||
|
||||
#define NUM_DURATIONS (sizeof (durations) / sizeof (durations[0]))
|
||||
|
||||
std::string ISO8601d::weekstart = STRING_DATE_SUNDAY;
|
||||
std::string ISO8601d::weekstart = STRING_DATE_SUNDAY;
|
||||
int ISO8601d::minimumMatchLength = 3;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
ISO8601d::ISO8601d ()
|
||||
|
|
|
@ -35,6 +35,7 @@ class ISO8601d
|
|||
{
|
||||
public:
|
||||
static std::string weekstart;
|
||||
static int minimumMatchLength;
|
||||
|
||||
ISO8601d ();
|
||||
~ISO8601d ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue