diff --git a/BACKEND/app/ultils/templates/show_version.ts b/BACKEND/app/ultils/templates/show_version.ts index 5eab9c5..ea723ab 100644 --- a/BACKEND/app/ultils/templates/show_version.ts +++ b/BACKEND/app/ultils/templates/show_version.ts @@ -25,7 +25,7 @@ const parseLog = (data: string) => { // 4. MEMORY & HARDWARE XRegExp('^(?\\d+[KMG])\\s+bytes\\s+of\\s+physical\\s+memory', 'i'), XRegExp( - '[Cc]isco\\s+(?\\S+).+?with\\s+(?\\d+[KMG]\\/\\d+[KMG])\\s+bytes\\s+of\\s+memory', + '[Cc]isco\\s+(?\\S+).+?with\\s+(?\\d+[KMG](?:\\/\\d+[KMG])?)\\s+bytes\\s+of\\s+memory', 'i' ), // 5. Flash / Storage @@ -33,7 +33,8 @@ const parseLog = (data: string) => { '^(?\\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' ),