- 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:
Paul Beckingham 2010-12-27 00:57:24 -05:00
parent 4a58fbdd53
commit 8d720cacc5

View file

@ -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;