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 06d6995 commit d839769Copy full SHA for d839769
backend/voting/templates/voting/home.html
@@ -87,7 +87,7 @@
87
var bool = false;
88
var code = document.getElementById("idManual").value;
89
90
- 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))) {
91
$(".loading").show();
92
$.ajax({
93
url: "/login",
0 commit comments