aboutsummaryrefslogtreecommitdiffstats
path: root/include/modules
diff options
context:
space:
mode:
Diffstat (limited to 'include/modules')
-rw-r--r--include/modules/regex.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/modules/regex.h b/include/modules/regex.h
index 62cfcfdf0..f4b557b50 100644
--- a/include/modules/regex.h
+++ b/include/modules/regex.h
@@ -252,7 +252,7 @@ inline Regex::PatternPtr Regex::Engine::CreateHuman(const std::string& pattern)
throw Exception(creator, pattern, "Regex patterns must be terminated with a '/'!");
uint8_t options = Regex::OPT_NONE;
- for (const auto& flag : insp::iterator_range(pattern.begin() + end + 1, pattern.end()))
+ for (const auto flag : insp::iterator_range(pattern.begin() + end + 1, pattern.end()))
{
switch (flag)
{