From 7ed81996b89e6fd3d87d15375cda0f5d96e3a190 Mon Sep 17 00:00:00 2001 From: CityFun <31820853+zhengkunwang223@users.noreply.github.com> Date: Fri, 19 Sep 2025 18:12:01 +0800 Subject: [PATCH] feat: Optimize log file support for IPv6. (#10418) Refs https://github.com/1Panel-dev/1Panel/issues/10411 --- 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 cf1d20d48..caf2665e7 100644 --- a/frontend/src/components/log/custom-hightlight/index.vue +++ b/frontend/src/components/log/custom-hightlight/index.vue @@ -124,7 +124,7 @@ const defaultRules: TokenRule[] = [ }, { type: 'ipv6', - pattern: /\b(?:[A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4}\b/g, + pattern: /\b(?:[A-Fa-f0-9]{0,4}:){1,7}[A-Fa-f0-9]{0,4}\b|\b::[A-Fa-f0-9:]*\b|\b[A-Fa-f0-9:]*::\b/g, color: '#4A90E2', }, {