summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/configimpl.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/configimpl.l b/src/configimpl.l
index cae157b..b01ad38 100644
--- a/src/configimpl.l
+++ b/src/configimpl.l
@@ -1626,8 +1626,8 @@ void Config::checkAndCorrect()
for (const auto &alias : aliasList)
{
// match aliases of the form re1='name=' and re2='name{2} ='
- static const reg::Ex re1(R"(\a\w*\s*=)");
- static const reg::Ex re2(R"(\a\w*{\d+}\s*=)");
+ static const reg::Ex re1(R"(^\a\w*\s*=)");
+ static const reg::Ex re2(R"(^\a\w*{\d+}\s*=)");
if (!reg::search(alias,re1) && !reg::search(alias,re2))
{
err("Illegal ALIASES format '%s'. Use \"name=value\" or \"name{n}=value\", where n is the number of arguments\n",