From 68dbe6aeb827c4fc1e4b38e5db79a52cb1d333a3 Mon Sep 17 00:00:00 2001 From: myfreeer Date: Fri, 3 May 2024 15:25:05 +0800 Subject: [PATCH] process-url: skip a bad link --- src/mdn/process-url/skip-process.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mdn/process-url/skip-process.ts b/src/mdn/process-url/skip-process.ts index f689c90b..fc355ced 100644 --- a/src/mdn/process-url/skip-process.ts +++ b/src/mdn/process-url/skip-process.ts @@ -54,6 +54,12 @@ export const skipProcess = ( skipExternalLogger.debug('skipped external link', host, url, parent?.url); return; } + // 20240503 a bad like to https://raw.githubusercontent.com/ + // src: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest_API + if (element?.is('a') && url === 'https://raw.githubusercontent.com/') { + skipExternalLogger.debug('skipped external link', host, url, parent?.url); + return; + } // special path for peach.blender.org // this site is not a static file cdn // Also referenced here: