summaryrefslogtreecommitdiffstats
path: root/src/util.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-07-31 11:15:34 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-07-31 11:15:34 (GMT)
commit0a09ab02f8ddbb4e3837b8b2611a2cf110b7e6f6 (patch)
tree047ae4b483e150e5565d29231b5a6339045d565e /src/util.cpp
parentf94a2f3a895f2601226845d16093546757a540e6 (diff)
downloadDoxygen-0a09ab02f8ddbb4e3837b8b2611a2cf110b7e6f6.zip
Doxygen-0a09ab02f8ddbb4e3837b8b2611a2cf110b7e6f6.tar.gz
Doxygen-0a09ab02f8ddbb4e3837b8b2611a2cf110b7e6f6.tar.bz2
issue #7881: More flexible and correct detection of direction of an argument (another fix)
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 13b3ca5..aa1acb4 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -8139,7 +8139,7 @@ QCString extractDirection(QCString &docs)
{
QRegExp re("\\[[ inout,]+\\]"); // [...]
int l=0;
- if (re.match(docs,0,&l)==0)
+ if (re.match(docs,0,&l)==0 && l>2)
{
// make dir the part inside [...] without separators
QCString dir=substitute(substitute(docs.mid(1,l-2)," ",""),",","");