style: hightlight ipv6 address in task log (#9238)

Refs https://github.com/1Panel-dev/1Panel/issues/9118
This commit is contained in:
CityFun 2025-06-23 14:46:13 +08:00 committed by GitHub
parent 41d0175a6d
commit eb2a80d216
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -111,6 +111,11 @@ const defaultRules: TokenRule[] = [
pattern: /\b(?<!\[)\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b(?!\])/g,
color: '#4A90E2',
},
{
type: 'ipv6',
pattern: /\b(?:[A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4}\b/g,
color: '#4A90E2',
},
{
type: 'server-host',
pattern: /(?:server|host):\s*[^,\s]+/g,