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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user