2026-10-08 18:49:15 -04:00
|
|
|
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;
|
|
|
|
|
};
|