This commit is contained in:
Michael Freno
2025-12-19 22:41:13 -05:00
parent 3e606d2354
commit ee9db9f674
14 changed files with 136 additions and 443 deletions

View File

@@ -205,8 +205,7 @@ export function debounce<T extends (...args: any[]) => any>(
// ============================================================================
/**
* Validates that a comment body meets requirements (client-side UX only)
* Server validation is in src/server/api/schemas/validation.ts
* Validates that a comment body meets requirements
*/
export function isValidCommentBody(body: string): boolean {
return body.trim().length > 0 && body.length <= 10000;