Skip to content

Commit ef94d79

Browse files
authored
Account of file size OS rounding in image max size
1 parent 533fa27 commit ef94d79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/scripts/validate-pr.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ async function run() {
132132
{
133133
name: "Check image file size",
134134
test: async ({ data, imageFiles }) => {
135-
const MAX_SIZE = 200 * 1024; // 200 KB
135+
const MAX_SIZE = 250000; // 250 KB (some leeway for OS rounding)
136136
const imageFile = imageFiles.find(f => f.filename === data.image);
137137

138138
if (!imageFile) return false;

0 commit comments

Comments
 (0)