(picture?: string)
| 75 | */ |
| 76 | |
| 77 | const validateImageExtension = (picture?: string): boolean => { |
| 78 | if (!picture) return true; |
| 79 | return commonImageExtensions.some(ext => picture.includes(`.${ext}`)); |
| 80 | }; |
| 81 | |
| 82 | /** |
| 83 | * Validate that a picture URL is valid. A valid picture URL either: |