aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/match_extras.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/clients/cave/match_extras.cc')
-rw-r--r--src/clients/cave/match_extras.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/clients/cave/match_extras.cc b/src/clients/cave/match_extras.cc
index dacbccd89..9b0b08b50 100644
--- a/src/clients/cave/match_extras.cc
+++ b/src/clients/cave/match_extras.cc
@@ -24,9 +24,9 @@
using namespace paludis;
extern "C" bool
-cave_match_extras_match_regex(const std::string & text, const std::string & pattern_str)
+cave_match_extras_match_regex(const std::string & text, const std::string & pattern_str, bool case_sensitive)
{
- const pcrecpp::RE pattern(pattern_str, pcrecpp::RE_Options().set_caseless(true));
+ const pcrecpp::RE pattern(pattern_str, pcrecpp::RE_Options().set_caseless(!case_sensitive));
if (! pattern.error().empty())
throw args::DoHelp("Pattern '" + pattern_str + "' error: " + pattern.error());