fix: update opengraph gen

This commit is contained in:
2025-12-10 16:53:51 +03:00
parent e3e9d14ea9
commit 9ec44b9432
25 changed files with 176 additions and 565 deletions

View File

@@ -0,0 +1 @@
export * from './phoneBeautify';

View File

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