From cf5f9684370a68d0bb0459aef06f57514d87a9de Mon Sep 17 00:00:00 2001 From: ttttmr <32825326+ttttmr@users.noreply.github.com> Date: Wed, 25 Sep 2024 01:56:41 +0800 Subject: [PATCH] fix: eslint --- lib/utils/ofetch.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/utils/ofetch.ts b/lib/utils/ofetch.ts index 4dcbf975e8a4af..8f5f527ac7e7bc 100644 --- a/lib/utils/ofetch.ts +++ b/lib/utils/ofetch.ts @@ -46,6 +46,7 @@ const rofetch = createFetch().create({ } if (config.feature.allow_cidr) { const allowCIDR = ip.parseCIDR(config.feature.allow_cidr); + // eslint-disable-next-line unicorn/prefer-regexp-test if (parsedIp.match(allowCIDR)) { return; }