add contact info
Main daploy / deploy (push) Successful in 40s

This commit is contained in:
2024-11-19 00:51:11 +02:00
parent cd33c37969
commit fd6b661980
7 changed files with 255 additions and 82 deletions
+4 -1
View File
@@ -52,7 +52,10 @@ const svgUrl = ref<string | null>(null)
// Получение имени файла
const sanitizedFileName = computed(() => {
const sanitized = qrCodeData.value?.name.replace(/[^a-zA-Z0-9-_]/g, '').trim()
const sanitized = qrCodeData.value?.name
.replace(/[<>:"/\\|?*\x00-\x1F]/g, '') // Убираем запрещённые символы
.replace(/\s+/g, '_') // Заменяем пробелы на подчёркивания
.trim()
return sanitized ? `${sanitized}_QR-Code_HereConnect` : 'QR-Code_HereConnect'
})