Update short log

This commit is contained in:
andrew.ng 2026-06-05 08:39:02 +07:00
parent a69e904afa
commit 13109dc75f
1 changed files with 1 additions and 1 deletions

View File

@ -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