feat: add advisor/contact flow tables and make Blog.authorId required
Deploy Canina / deploy (push) Successful in 25m44s

This commit is contained in:
devops committed 2026-11-05 08:33:30 +00:00
1 parent bb81f2c944
commit d881dc491e
86 files changed
+507 -4111

No files matched your search

-20
View File
@@ -25,23 +25,3 @@ export function isProductOutOfStock(product?: {
if (product.packageSize !== undefined && product.packageSize !== null && Number(product.packageSize) <= 0) return true;
return false;
}
export function normalizePersianText(input: string | undefined | null): string {
if (!input) return "";
return input
.toString()
.toLowerCase()
.replace(/[\u200B-\u200D\uFEFF]/g, "")
.replace(/[\u200C]/g, " ")
.replace(/[يیى]/g, "ی")
.replace(/[ك]/g, "ک")
.replace(/[ة]/g, "ه")
.replace(/[أإآ]/g, "ا")
.replace(/[ؤ]/g, "و")
.replace(/[ء]/g, "")
.replace(/[\u064B-\u065F]/g, "")
.replace(/[۰-۹]/g, d => "0123456789"["۰۱۲۳۴۵۶۷۸۹".indexOf(d)])
.replace(/[٠-٩]/g, d => "0123456789"["٠١٢٣٤٥٦٧٨٩".indexOf(d)])
.replace(/\s+/g, " ")
.trim();
}