From 13109dc75fa2c45af3b0529d77c01cb5e73de71b Mon Sep 17 00:00:00 2001 From: "andrew.ng" Date: Fri, 5 Jun 2026 08:39:02 +0700 Subject: [PATCH] Update short log --- FRONTEND/src/untils/helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FRONTEND/src/untils/helper.ts b/FRONTEND/src/untils/helper.ts index 1658ff4..cfcbf78 100644 --- a/FRONTEND/src/untils/helper.ts +++ b/FRONTEND/src/untils/helper.ts @@ -265,7 +265,7 @@ export function createShortLog(rawLog: string): string { // - Group 1: System image file // - Nhảy qua đoạn rác (Cryptographic/License info rườm rà) // - Group 2: Bắt đầu từ chữ Cisco (bất kể hoa thường) + Mã máy + "processor" cho đến hết Config register - const verRegex = /(System image file is[^\r\n]+)[\s\S]*?((?:[Cc]isco)\s+\S+.*processor[\s\S]*?Configuration register is 0x[0-9a-fA-F]+)/i; + const verRegex = /(System image file is[^\r\n]+)[\s\S]*?((?:[Cc]isco)\s+\S+.*?(?:processor|bytes of memory)[\s\S]*?Configuration register is 0x[0-9a-fA-F]+)/i; const verMatch = rawLog.match(verRegex); if (verMatch) { // verMatch[1] là dòng System image