Skip to content

Commit

Permalink
Merge pull request #242 from IvanMathy/pr/185
Browse files Browse the repository at this point in the history
Promoted ascii script, added error
  • Loading branch information
IvanMathy authored Mar 16, 2021
2 parents daadbcd + be51c18 commit 460f6f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
File renamed without changes.
8 changes: 5 additions & 3 deletions Scripts/HexToASCII.js → Boop/Boop/scripts/HexToASCII.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ function main(state) {
buf += String.fromCharCode(parseInt(hexBuf, 16));
hexBuf = "";
}
} else if(c != ' ' && c != '\t' && c != '\n' && c != '\r')
throw "Not hex";
} else if(c != ' ' && c != '\t' && c != '\n' && c != '\r') {
state.postError("Text is not hex")
throw "Not hex";
}
}
state.fullText = buf;
}
}

0 comments on commit 460f6f3

Please sign in to comment.