We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d839769 commit 914a1d3Copy full SHA for 914a1d3
backend/voting/templates/voting/home.html
@@ -46,7 +46,7 @@
46
function barcode(code) {
47
var bool = false;
48
49
- if ((code[0].match(/[a-z]/i) && code[2].match(/[a-z]/i) && code.length === 11) || (code.length === 4 && Number.isInteger(code) )) {
+ if ((code[0].match(/[a-z]/i) && code[2].match(/[a-z]/i) && code.length === 11) || (code.length === 4 && isNaN(code) )) {
50
console.log(code);
51
// start loading a(if possible pause video)
52
$(".loading").show();
0 commit comments