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;