Skip to content
Snippets Groups Projects
Commit e090348e authored by Ricy40's avatar Ricy40
Browse files

favicon

parent 27dd9b3c
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -51,7 +51,7 @@ checkoutForm.addEventListener("submit", (e) => {
let exp = document.getElementById("exp");
let cvc = document.getElementById("cvc");
var regEx = /[0-9]{16}$/;
var regEx = /[0-9]{8}|[0-9]{9}|[0-9]{10}|[0-9]{11}|[0-9]{12}|[0-9]{13}|[0-9]{14}|[0-9]{15}|[0-9]{16}|[0-9]{17}|[0-9]{18}|[0-9]{19}$/;
if(number.value.replace(/\s/g, "").match(regEx)) {
var regEx = /[0-9]{2}[/][0-9]{2}$/;
if(exp.value.match(regEx)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment