aboutsummaryrefslogtreecommitdiff
path: root/src/tracking/path_matcher.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/tracking/path_matcher.cc')
-rw-r--r--src/tracking/path_matcher.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/tracking/path_matcher.cc b/src/tracking/path_matcher.cc
index e754586..c136565 100644
--- a/src/tracking/path_matcher.cc
+++ b/src/tracking/path_matcher.cc
@@ -15,9 +15,11 @@ PathMatcher::PathMatcher(const std::string& source_file_path) {
std::string current_line;
while ( std::getline(file, current_line) ) {
- try {
- this->patterns_.emplace_back(current_line);
- } catch ( const std::regex_error& ) { }
+ if ( current_line[0] != '#' ) { // i.e. not a comment
+ try {
+ this->patterns_.emplace_back(current_line);
+ } catch ( const std::regex_error& ) { }
+ }
}
}
} catch ( boost::filesystem::filesystem_error& ) {