BUG: Fix help type for filenames with many dots
The help page type should be determined using only the extension after the last dot. See issue #7797.
This commit is contained in:
parent
b3f43f0065
commit
657627c231
|
@ -634,7 +634,7 @@ bool cmDocumentation::PrintRequestedDocumentation(std::ostream& os)
|
|||
cmDocumentation::Form cmDocumentation::GetFormFromFilename(
|
||||
const std::string& filename)
|
||||
{
|
||||
std::string ext = cmSystemTools::GetFilenameExtension(filename);
|
||||
std::string ext = cmSystemTools::GetFilenameLastExtension(filename);
|
||||
ext = cmSystemTools::UpperCase(ext);
|
||||
if ((ext == ".HTM") || (ext == ".HTML"))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue