mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-18 03:16:30 +08:00
style: hightlight ipv6 address in task log (#9238)
Refs https://github.com/1Panel-dev/1Panel/issues/9118
This commit is contained in:
parent
41d0175a6d
commit
eb2a80d216
1 changed files with 5 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue