From cb34071ca4f1abd9e002c8bb05f08fd56a8798e5 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Sun, 21 Feb 2021 13:52:41 +0100 Subject: Remove double call to wildcard2regex() --- src/util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.cpp b/src/util.cpp index 80ea950..05a90cb 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -1306,7 +1306,7 @@ static bool isMatchingWildcard(const std::string &input,const std::string &patte std::regex::flag_type flags = std::regex::ECMAScript; if (!caseSensitive) flags |= std::regex::icase; std::string re_str = wildcard2regex(pattern); - std::regex rePattern(wildcard2regex(pattern),flags); + std::regex rePattern(re_str,flags); return std::regex_match(input,rePattern); } -- cgit v0.12