fix(learning): load readme images over https

This commit is contained in:
2026-08-20 13:51:48 +08:00
parent 28bfd8bc3e
commit 9956739693
6 changed files with 103 additions and 7 deletions

View File

@@ -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);