summaryrefslogtreecommitdiff
path: root/lib/Regex.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Regex.cc')
-rw-r--r--lib/Regex.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Regex.cc b/lib/Regex.cc
index c614d85..68ccba8 100644
--- a/lib/Regex.cc
+++ b/lib/Regex.cc
@@ -54,8 +54,8 @@ Regex::~Regex() {
free(pattern);
}
-bool Regex::Match(const String & s) const {
- if (regexec(&preg, s.to_charp(), 0, 0, eflags)) {
+bool Regex::Match(const String & s, int nmatch, regmatch_t * pmatch) const {
+ if (regexec(&preg, s.to_charp(), nmatch, pmatch, eflags)) {
return false;
} else {
return true;