fix: Fixed the issue of task log crashes. (#10599)

This commit is contained in:
CityFun 2025-10-10 17:24:11 +08:00 committed by GitHub
parent 222181baff
commit 8983cb6186
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -100,7 +100,7 @@ const systemRules: TokenRule[] = [
const taskRules: TokenRule[] = [
{
type: 'bracket-text',
pattern: /\[(?:[^\[\]]*(?:\[[^\[\]]*\])*[^\[\]]*)*\]/g,
pattern: /\[(?:[^\[\]]|\[[^\[\]]*\]){0,100}\]/g,
color: '#B87A2B',
},
];