Merge pull request #6119 from Cacodemon345/edid-decode-text-2

Make EDID text dump detection more robust to avoid false positives
This commit is contained in:
Miran Grča
2025-09-01 13:08:13 +02:00
committed by GitHub

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;
}
}