mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Bug
- When rc.regex:on is set, filters with "+tag" elements were causing a segfault because the "tag" word was converted to a non-capturing regex, no results were captured, and array[0] failed. Now it is implemented that tag elements in a filter never use regexes, which maintains the idea the tags are not really words, but tokens that either match or don't.
This commit is contained in:
parent
4a58fbdd53
commit
8d720cacc5
1 changed files with 2 additions and 2 deletions
|
@ -779,7 +779,7 @@ bool Att::match (const Att& other) const
|
|||
// word = contains as a substring, with word boundaries.
|
||||
else if (mMod == "word") // TODO i18n
|
||||
{
|
||||
if (regex)
|
||||
if (regex && other.mName != "tags")
|
||||
{
|
||||
std::vector <int> start;
|
||||
std::vector <int> end;
|
||||
|
@ -811,7 +811,7 @@ bool Att::match (const Att& other) const
|
|||
// noword = does not contain as a substring, with word boundaries.
|
||||
else if (mMod == "noword") // TODO i18n
|
||||
{
|
||||
if (regex)
|
||||
if (regex && other.mName != "tags")
|
||||
{
|
||||
std::vector <int> start;
|
||||
std::vector <int> end;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue