From 8983cb61865c904cd219aad01e3b6036bb9b1688 Mon Sep 17 00:00:00 2001 From: CityFun <31820853+zhengkunwang223@users.noreply.github.com> Date: Fri, 10 Oct 2025 17:24:11 +0800 Subject: [PATCH] fix: Fixed the issue of task log crashes. (#10599) --- frontend/src/components/log/custom-hightlight/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/log/custom-hightlight/index.vue b/frontend/src/components/log/custom-hightlight/index.vue index caf2665e7..769596f5e 100644 --- a/frontend/src/components/log/custom-hightlight/index.vue +++ b/frontend/src/components/log/custom-hightlight/index.vue @@ -100,7 +100,7 @@ const systemRules: TokenRule[] = [ const taskRules: TokenRule[] = [ { type: 'bracket-text', - pattern: /\[(?:[^\[\]]*(?:\[[^\[\]]*\])*[^\[\]]*)*\]/g, + pattern: /\[(?:[^\[\]]|\[[^\[\]]*\]){0,100}\]/g, color: '#B87A2B', }, ];