Permalink
Browse files

Fixed extension matching issue if path contained a dot.

  • Loading branch information...
Dimitri van Heesch
Dimitri van Heesch committed Oct 24, 2014
1 parent 060a5cc commit 79ed06502c3abca083f2e231f09fc8101862fcf6
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/doxygen.cpp
View
@@ -9247,8 +9247,9 @@ static ParserInterface *getParserForFile(const char *fn)
{
QCString fileName=fn;
QCString extension;
int sep = fileName.findRev('/');
int ei = fileName.findRev('.');
if (ei!=-1)
if (ei!=-1 && (sep==-1 || ei>sep)) // matches dir/file.ext but not dir.1/file
{
extension=fileName.right(fileName.length()-ei);
}

0 comments on commit 79ed065

Please sign in to comment.