aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_regex_stdlib.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-05-19 20:35:00 +0100
committerGravatar Sadie Powell2020-05-19 20:37:32 +0100
commita721aaf90f480675d225ed80c9b9e1c9fbe51ec0 (patch)
tree7c523a3df722ea372bef2d3c0d30d01ceeb5c3f7 /src/modules/m_regex_stdlib.cpp
parentReplace FileSystem::GetFileList with std::filesystem. (diff)
parentFix CallInit overriding the error from dlopen. (diff)
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules/m_regex_stdlib.cpp')
-rw-r--r--src/modules/m_regex_stdlib.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_regex_stdlib.cpp b/src/modules/m_regex_stdlib.cpp
index 9955549f6..fffb2a7a6 100644
--- a/src/modules/m_regex_stdlib.cpp
+++ b/src/modules/m_regex_stdlib.cpp
@@ -31,7 +31,8 @@ class StdRegex : public Regex
public:
StdRegex(const std::string& rx, std::regex::flag_type fltype) : Regex(rx)
{
- try{
+ try
+ {
regexcl.assign(rx, fltype | std::regex::optimize);
}
catch(const std::regex_error& rxerr)