summaryrefslogtreecommitdiff
path: root/mask.h
diff options
context:
space:
mode:
Diffstat (limited to 'mask.h')
-rw-r--r--mask.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/mask.h b/mask.h
index 538316be..06161d12 100644
--- a/mask.h
+++ b/mask.h
@@ -41,12 +41,11 @@ class mask_t
mask_t();
public:
- bool exclude;
boost::regex expr;
explicit mask_t(const string& pattern);
- mask_t(const mask_t& m) : exclude(m.exclude), expr(m.expr) {
+ mask_t(const mask_t& m) : expr(m.expr) {
TRACE_CTOR(mask_t, "copy");
}
~mask_t() throw() {
@@ -56,7 +55,7 @@ public:
mask_t& operator=(const string& other);
bool match(const string& str) const {
- return boost::regex_match(str, expr) && ! exclude;
+ return boost::regex_search(str, expr);
}
void read(const char *& data);