Files
2026-10-08 18:49:15 -04:00

12 lines
281 B
TypeScript

export const validateShortCode = (value: string): string | undefined => {
if (value.length < 1) {
return 'A short code must be provided.';
}
if (value.length > 60) {
return 'A short code must not exceed 60 characters.';
}
return undefined;
};