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