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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user