commit | 45ab9a9462dcaf81dbd94f7702d172ce2e9fedaf | [log] [tgz] |
---|---|---|
author | Davide Pesavento <davide.pesavento@lip6.fr> | Sun Nov 05 19:34:31 2017 -0500 |
committer | Davide Pesavento <davide.pesavento@lip6.fr> | Sun Nov 12 15:10:43 2017 -0500 |
tree | 86cb7f4d794975ca52c921eb911348c69b5ad47a | |
parent | af1d6cfa642d3748c7928ad01926d4240b8c7ef1 [diff] [blame] |
regex: modernize and simplify code Change-Id: Ia4a3046d409ab1e5d8507da4d369dfee203f6256
diff --git a/src/security/v2/validator-config/checker.cpp b/src/security/v2/validator-config/checker.cpp index fdff8d2..dc4d49a 100644 --- a/src/security/v2/validator-config/checker.cpp +++ b/src/security/v2/validator-config/checker.cpp
@@ -258,7 +258,7 @@ } try { - return make_unique<RegexChecker>(regexString); + return make_unique<RegexChecker>(Regex(regexString)); } catch (const Regex::Error& e) { BOOST_THROW_EXCEPTION(Error("Invalid checker.key-locator.regex: " + regexString));