From 0b80911a277201781e3605a7832178dcbb05eed3 Mon Sep 17 00:00:00 2001 From: Bit Borealis Date: Sat, 19 Aug 2023 06:03:12 +0000 Subject: [PATCH] initial sanitize function --- js/main.js | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) 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