fixed case insensitive compare

This commit is contained in:
kkoenig1@optonline.com
2021-10-06 16:16:44 +02:00
committed by Risto
parent 088051f3bb
commit ab9d026f17
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -258,7 +258,7 @@ void ThemePersistance::scanForThemes()
std::string fname(fno.fname);
auto found = fname.find('.');
if (found != std::string::npos) {
if (fname.substr(found) != ".yml") continue;
if (strcasecmp(fname.substr(found).c_str(), YAML_EXT) != 0) continue;
}
themes.emplace_back(new ThemeFile(fno.fname));
+2
View File
@@ -21,6 +21,8 @@
#pragma once
#include <stdlib.h>
#include <list>
#include <string>
#include <locale>
#include "sdcard.h"
#include "colors.h"
#include "str_functions.h"