diff --git a/frontend/src/components/log/custom-hightlight/index.vue b/frontend/src/components/log/custom-hightlight/index.vue index 3b0cd0ead..717cafebd 100644 --- a/frontend/src/components/log/custom-hightlight/index.vue +++ b/frontend/src/components/log/custom-hightlight/index.vue @@ -89,7 +89,7 @@ const systemRules: TokenRule[] = [ const taskRules: TokenRule[] = [ { type: 'bracket-text', - pattern: /\[([^\]]+)\]/g, + pattern: /\[(?:[^\[\]]*(?:\[[^\[\]]*\])*[^\[\]]*)*\]/g, color: '#B87A2B', }, ];