Allow to have float numbers when getting image information in reftest-analyzer

- outputScale can be e.g. 1.5 in real life.
This commit is contained in:
Calixte Denizet 2022-05-20 12:57:22 +02:00
parent 60e9065bf6
commit 0a66e1f5ea

View File

@ -225,7 +225,9 @@ window.onload = function () {
});
continue;
}
match = line.match(/^ {2}IMAGE[^:]*\((\d+)x(\d+)x(\d+)\): (.*)$/);
match = line.match(
/^ {2}IMAGE[^:]*\((\d+\.?\d*)x(\d+\.?\d*)x(\d+\.?\d*)\): (.*)$/
);
if (match) {
const item = gTestItems[gTestItems.length - 1];
item.images.push({