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