(picture?: string)
| 88 | * @returns Whether the picture URL is considered valid. |
| 89 | */ |
| 90 | const isValidPictureUrl = (picture?: string): boolean => { |
| 91 | if (!picture) return true; |
| 92 | return isPictureWithProtocol(picture) && validateImageExtension(picture); |
| 93 | }; |
| 94 | |
| 95 | const ALLOWED_DOMAINS_MAP = { |
| 96 | githubProfile: ['github.com'], |
no test coverage detected