Skip to content

Commit 914a1d3

Browse files
committed
Some Bug Fixes
1 parent d839769 commit 914a1d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/voting/templates/voting/home.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
function barcode(code) {
4747
var bool = false;
4848

49-
if ((code[0].match(/[a-z]/i) && code[2].match(/[a-z]/i) && code.length === 11) || (code.length === 4 && Number.isInteger(code) )) {
49+
if ((code[0].match(/[a-z]/i) && code[2].match(/[a-z]/i) && code.length === 11) || (code.length === 4 && isNaN(code) )) {
5050
console.log(code);
5151
// start loading a(if possible pause video)
5252
$(".loading").show();

0 commit comments

Comments
 (0)