From 64d7316256bd64643df22c36c6ce546ecb36150f Mon Sep 17 00:00:00 2001 From: piquark6046 Date: Wed, 25 Dec 2024 05:27:36 +0000 Subject: [PATCH] fix: adjust regexp --- package.json | 2 +- sources/banner.txt | 2 +- sources/src/index.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index ca5e555..489982b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@list-kr/namulink", - "version": "5.0.1", + "version": "5.0.2", "description": "", "type": "module", "scripts": { diff --git a/sources/banner.txt b/sources/banner.txt index eeea975..cf0041a 100644 --- a/sources/banner.txt +++ b/sources/banner.txt @@ -8,7 +8,7 @@ // @downloadURL https://cdn.jsdelivr.net/npm/@list-kr/namulink@latest/dist/NamuLink.user.js // @license MIT // -// @version 5.0.1 +// @version 5.0.2 // @author PiQuark6046 and contributors // // @match https://namu.wiki/* diff --git a/sources/src/index.ts b/sources/src/index.ts index 06b70c9..c664c47 100644 --- a/sources/src/index.ts +++ b/sources/src/index.ts @@ -8,7 +8,7 @@ Win.Proxy = new Proxy(Win.Proxy, { // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type construct(Target: ProxyConstructor, Args: [T, ProxyHandler], NewTarget: Function): object { if (typeof Args[0] === 'object' && Array.isArray(Args[0]) && typeof Args[0][0] === 'object' && Array.isArray(Args[0][0]) - && typeof Args[0][0][1] === 'string' && /^#x=[A-Za-z0-9-+]+\/\/\/.+=?$/.test(Args[0][0][1])) { + && typeof Args[0][0][1] === 'string' && /^#x=[A-Za-z0-9-+]+\/\/\/.+=?/.test(Args[0][0][1])) { setTimeout(() => { Array.from(document.querySelectorAll('div[class*=" "] div[class]')).filter((TargetEle: HTMLElement) => { return TargetEle.innerText === '' && Array.from(TargetEle.querySelectorAll('*')).filter((ChildEle: HTMLElement) => {