Update show_version.ts

This commit is contained in:
nguyentrungthat 2026-02-02 10:53:47 +07:00
parent 1b85cde4bb
commit 5812e1742b
1 changed files with 3 additions and 2 deletions

View File

@ -25,7 +25,7 @@ const parseLog = (data: string) => {
// 4. MEMORY & HARDWARE
XRegExp('^(?<MEMORY>\\d+[KMG])\\s+bytes\\s+of\\s+physical\\s+memory', 'i'),
XRegExp(
'[Cc]isco\\s+(?<HARDWARE>\\S+).+?with\\s+(?<MEMORY>\\d+[KMG]\\/\\d+[KMG])\\s+bytes\\s+of\\s+memory',
'[Cc]isco\\s+(?<HARDWARE>\\S+).+?with\\s+(?<MEMORY>\\d+[KMG](?:\\/\\d+[KMG])?)\\s+bytes\\s+of\\s+memory',
'i'
),
// 5. Flash / Storage
@ -33,7 +33,8 @@ const parseLog = (data: string) => {
'^(?<USB_FLASH>\\d+[KMG])\\s+bytes\\s+of\\s+(?:' +
'[Uu][Ss][Bb]+\\s+[Ff]lash' +
'|ATA\\s+System\\s+CompactFlash.*' +
'|flash\\s+memory\\s+at\\s+bootflash:' +
'|[Ff]lash\\s+memory\\s+at\\s+(?:boot)?flash:' +
'|[Ff]lash\\s+at\\s+flash:' +
')',
'i'
),