We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65ce1ae commit 814ab45Copy full SHA for 814ab45
utils/InputFormat.tsx
@@ -29,7 +29,7 @@ function byteArrayFormat(x: string): string | undefined {
29
const o = JSON.parse(x);
30
if (o instanceof Array) {
31
for (let i = 0; i < o.length; i++) {
32
- if (!(o[i] instanceof Number && o[i] >= 0 && o[i] <= 255)) {
+ if (typeof o[i] !== "number" || o[i] < 0 || o[i] > 255) {
33
return "Each entry must be a byte value in [0, 255]";
34
}
35
0 commit comments