2
0
mirror of https://github.com/gchq/CyberChef synced 2025-12-14 15:23:20 +00:00

add dish translation tests for node

This commit is contained in:
d98762625
2019-04-29 17:09:01 +01:00
parent aeb08caf77
commit 65a3897f87
7 changed files with 147 additions and 24 deletions

View File

@@ -208,7 +208,7 @@ class Dish {
valid() {
switch (this.type) {
case Dish.BYTE_ARRAY:
if (!(this.value instanceof Array)) {
if (!(this.value instanceof Uint8Array) && !(this.value instanceof Array)) {
return false;
}