Download wp-calypso/client/reader/lib/author-name-blocklist/index.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 228 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/reader/lib/author-name-blocklist/index.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/reader/lib/author-name-blocklist/index.ts
-
curl -L -o index.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/reader/lib/author-name-blocklist/index.ts
228 Bytes
| /** | |
| * Is the provided author name blocked? | |
| * @param authorName - Author name | |
| * @returns True if blocked | |
| */ | |
| export const isAuthorNameBlocked = ( authorName: string ) => | |
| !! authorName && 'admin' === authorName.toLowerCase(); | |