summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2021-04-22 12:37:17 (GMT)
committeralbert-github <albert.tests@gmail.com>2021-04-22 12:37:17 (GMT)
commit7fce2a70fac2d52079572f60342094d44331af78 (patch)
tree836a91f4a86e5ebf998cede5e72b21571a9fbabc
parent98c67549bc3cd855873e0ef5eeab7c6410699d78 (diff)
downloadDoxygen-7fce2a70fac2d52079572f60342094d44331af78.zip
Doxygen-7fce2a70fac2d52079572f60342094d44331af78.tar.gz
Doxygen-7fce2a70fac2d52079572f60342094d44331af78.tar.bz2
No warning for incorrect ALIASES
When having the alias: ``` "\latexonly mytable=\\mytable \endlatexonly" ``` the 1.9.1. version gave a warning: ``` error: Illegal ALIASES format '\latexonly mytable=\\mytable \endlatexonly'. Use "name=value" or "name{n}=value", where n is the number of arguments ``` though the current version doesn't give a warning, probably due to the regexp replacement. Now most likely the string found starts at `mytable=` The alias should start at the beginning of the string when searching.
-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",