- The .not modifier was accidentally inverted when rc.regex=on.
This commit is contained in:
Paul Beckingham 2011-01-23 01:31:04 -05:00
parent ad2614c452
commit 2d50d1cbf5

View file

@ -629,7 +629,7 @@ bool Att::match (const Att& other) const
if (regex) if (regex)
{ {
std::string pattern = "^" + mValue + "$"; std::string pattern = "^" + mValue + "$";
if (!regexMatch (other.mValue, pattern, case_sensitive)) if (regexMatch (other.mValue, pattern, case_sensitive))
return false; return false;
} }
else if (compare (mValue, other.mValue, (bool) case_sensitive)) else if (compare (mValue, other.mValue, (bool) case_sensitive))