Make EDID text dump detection more robust to avoid false positives

This commit is contained in:
Cacodemon345
2025-09-01 17:06:06 +06:00
parent 47074b4649
commit e51e3d9b72

View File

@@ -30,7 +30,6 @@ extern "C"
{
std::regex regexLib("^([a-f0-9]{32}|[a-f0-9 ]{47})$", std::regex_constants::egrep);
FILE* file;
pclog("Parse %s\n", path);
try {
bool bom = ini_detect_bom(path);
{
@@ -54,7 +53,7 @@ extern "C"
return false;
}
if (str.find("edid-decode") == std::string::npos) {
if (str.find("edid-decode (hex):") == std::string::npos) {
return false;
}
}