diff --git a/js/main.js b/js/main.js index 4dfd4a4..8047a54 100644 --- a/js/main.js +++ b/js/main.js @@ -296,12 +296,40 @@ function getInfoBits(){ return result; } +/*** +* +* Sanitize and verify qr is square before parsing it +* +***/ +function sanitizeQrTxt(lines) { + const linesOut = []; + + for(let i=0;i