From 02c86b02e132682be5e282f4cb5e8934af9713c4 Mon Sep 17 00:00:00 2001 From: xuzijie1995 <18852951350@163.com> Date: Wed, 4 Jun 2025 18:44:08 +0800 Subject: [PATCH] fix lint --- web/app/components/base/markdown/markdown-utils.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/app/components/base/markdown/markdown-utils.ts b/web/app/components/base/markdown/markdown-utils.ts index ea11e7d272..0aa385a1d1 100644 --- a/web/app/components/base/markdown/markdown-utils.ts +++ b/web/app/components/base/markdown/markdown-utils.ts @@ -73,9 +73,9 @@ export const customUrlTransform = (uri: string): string | undefined => { const hashIndex = uri.indexOf('#') if ( - (slashIndex !== -1 && colonIndex > slashIndex) || - (questionMarkIndex !== -1 && colonIndex > questionMarkIndex) || - (hashIndex !== -1 && colonIndex > hashIndex) + (slashIndex !== -1 && colonIndex > slashIndex) + || (questionMarkIndex !== -1 && colonIndex > questionMarkIndex) + || (hashIndex !== -1 && colonIndex > hashIndex) ) return uri @@ -84,4 +84,4 @@ export const customUrlTransform = (uri: string): string | undefined => { return uri return undefined -} \ No newline at end of file +}