fix(learning): load readme images over https
This commit is contained in:
@@ -132,7 +132,7 @@ export function isLearningProjectMediaUrl(value: string): boolean {
|
||||
return PROJECT_MEDIA_URL_PATTERN.test(value);
|
||||
}
|
||||
|
||||
export function isSafeLearningCoverUrl(value: string): boolean {
|
||||
export function isSafeLearningImageUrl(value: string): boolean {
|
||||
if (PROJECT_MEDIA_URL_PATTERN.test(value)) return true;
|
||||
try {
|
||||
const url = new URL(value);
|
||||
|
||||
Reference in New Issue
Block a user