fuc-new/doc/node_modules/@vuepress/plugin-git/lib/node/utils/checkGithubUsername.d.ts
hellcat 6adbc04d4b 1
2025-10-03 17:17:08 +08:00

11 lines
312 B
TypeScript

/**
* Check if the username is a valid github username
*
* - length <= 39
* - starts with a letter
* - contains only letters, numbers, and hyphens
* - does not start or end with a hyphen
* - does not contain consecutive hyphens
*/
export declare const checkGithubUsername: (username: string) => boolean;