Update short log
This commit is contained in:
parent
a69e904afa
commit
13109dc75f
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue