allow ü in schema

This commit is contained in:
Evan
2025-02-20 19:16:31 -08:00
parent 74f56d8fac
commit 33c634f928
+1 -1
View File
@@ -102,7 +102,7 @@ const SafeString = z
// Remove common dangerous characters and patterns
// The weird \u stuff is to allow emojis
.regex(
/^[a-zA-Z0-9\s.,!?@#$%&*()-_+=\[\]{}|;:"'\/\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff]]+$/,
/^[a-zA-Z0-9\s.,!?@#$%&*()-_+=\[\]{}|;:"'\/\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff]|üÜ]+$/,
)
// Reasonable max length to prevent DOS
.max(1000);