fix: add privacy-policy

This commit is contained in:
2025-12-04 09:54:35 +03:00
parent c4d19a453d
commit d6d7f5548d
12 changed files with 667 additions and 27 deletions

View File

@@ -0,0 +1,10 @@
export function phoneBeautify(phone: string): string {
const cleaned = phone.replace(/[^\d+]/g, '');
const match = cleaned.match(/^\+?7(\d{3})(\d{3})(\d{2})(\d{2})$/);
if (!match) return phone;
const [, code, part1, part2, part3] = match;
return `+7 (${code}) ${part1}-${part2}-${part3}`;
}