A3t
- ::getFilterExpression expands +tag to tags _hastag_ tag, -tag to tags _notag_ tag.
This commit is contained in:
@@ -564,12 +564,13 @@ const std::string A3t::getFilterExpression ()
|
|||||||
}
|
}
|
||||||
else if ((*i)->hasTag ("TAG"))
|
else if ((*i)->hasTag ("TAG"))
|
||||||
{
|
{
|
||||||
// TODO +tag --> _hastag_ tag
|
|
||||||
// TODO -tag --> _notag_ tag
|
|
||||||
if (filter != "")
|
if (filter != "")
|
||||||
filter += ' ';
|
filter += ' ';
|
||||||
|
|
||||||
filter += "<tag>";
|
if ((*i)->attribute ("sign") == "+")
|
||||||
|
filter += "tags _hastag_ " + (*i)->attribute ("tag");
|
||||||
|
else
|
||||||
|
filter += "tags _notag_ " + (*i)->attribute ("tag");
|
||||||
}
|
}
|
||||||
else if ((*i)->hasTag ("PATTERN"))
|
else if ((*i)->hasTag ("PATTERN"))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user