fix: replace non valid chars with space
Lint / Oxlint (push) Successful in 2m54s
Lint / ESLint (push) Successful in 3m17s
Lint / TypeScript (push) Successful in 2m54s
Deploy / Build (push) Successful in 3m29s
Deploy / Deploy to Stapler (push) Has been cancelled

This commit is contained in:
2026-06-16 11:28:43 +02:00
parent 26eb3225b8
commit 98e3ecd76e
+2 -2
View File
@@ -21,10 +21,10 @@ export class DomainFactory {
.map((word) => { .map((word) => {
word = word word = word
.normalize("NFD") .normalize("NFD")
.replace(/[\u0300-\u036f]/g, "")
.toLowerCase() .toLowerCase()
.replace(/[^a-z0-9-]/g, "")
.trim(); .trim();
if (word.includes(" ") || word.length == 0) { if (word.length == 0) {
return null; return null;
} }
return word; return word;