fix
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
let cart = {
|
||||
items: [
|
||||
{ id: 1, name: 'Кресло OPPORTUNITY', price: 16999, quantity: 1 },
|
||||
@@ -44,9 +42,7 @@ $(document).ready(function() {
|
||||
}
|
||||
|
||||
function validateFullName(name) {
|
||||
|
||||
const nameRegex = /^[a-zA-Zа-яА-ЯёЁ\s\-']+$/;
|
||||
|
||||
const words = name.trim().split(/\s+/);
|
||||
|
||||
return nameRegex.test(name) && words.length >= 2;
|
||||
|
||||
Reference in New Issue
Block a user