UNPKG

@platformbuilders/validations

Version:
13 lines 796 B
/** * Validates a social media username based on the following criteria: * * Must start with a specific symbol (e.g., "@", "#", "$") * * Must have a minimum length of characters (excluding the symbol) * * Only allows alphanumeric characters and underscores * * Empty or undefined values are considered invalid * @param username - The social media username to be validated * @param minLength - The minimum length of the username (excluding the symbol) * @param symbol - The symbol that the username should start with (e.g., "@", "#", "$") * @returns boolean - Indicates whether the social media username is valid or not */ export declare const isValidSocialUsername: (username?: string, minLength?: number, symbol?: string) => boolean; //# sourceMappingURL=isValidSocialUsername.d.ts.map