From a1f7ee77f3192b0ac5f8487566ab6c9303847bfc Mon Sep 17 00:00:00 2001 From: WANG Xuerui Date: Sun, 11 Feb 2024 21:16:15 +0800 Subject: [PATCH] feat: mark deepin.{com,org} links as likely CN-domestic --- src/plugins/awly-rehype-annotate-overseas-links/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/awly-rehype-annotate-overseas-links/index.ts b/src/plugins/awly-rehype-annotate-overseas-links/index.ts index 1252c6f7..adceafac 100644 --- a/src/plugins/awly-rehype-annotate-overseas-links/index.ts +++ b/src/plugins/awly-rehype-annotate-overseas-links/index.ts @@ -11,7 +11,8 @@ function isHostLikelyCNDomestic(hostname: string): boolean { } if (hostname.endsWith('gitee.com') || hostname.endsWith('katyusha.net') - || hostname.endsWith('sseinfo.com')) + || hostname.endsWith('sseinfo.com') || hostname.endsWith('deepin.com') + || hostname.endsWith('deepin.org')) return true return false