From 8d720cacc5a116786556d1b13946521bc4063f13 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 27 Dec 2010 00:57:24 -0500 Subject: [PATCH] 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. --- src/Att.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Att.cpp b/src/Att.cpp index 983950e71..c274dba29 100644 --- a/src/Att.cpp +++ b/src/Att.cpp @@ -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 start; std::vector 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 start; std::vector end;