Update regex show version
This commit is contained in:
parent
0fb7690d33
commit
1b85cde4bb
|
|
@ -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+)\\s+\\(.+?\\)\\s+processor\\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
|
||||
|
|
|
|||
|
|
@ -832,18 +832,27 @@ const ModalTerminal = ({
|
|||
: ""}
|
||||
</Box>
|
||||
</Box>
|
||||
<Flex>
|
||||
<Text size="md" mr={"sm"} fw={"bold"}>
|
||||
Mem/Flash:
|
||||
</Text>
|
||||
<Text size="md">
|
||||
{findDataShowVersion()
|
||||
? (findDataShowVersion()?.MEMORY || "") +
|
||||
(findDataShowVersion()?.USB_FLASH
|
||||
? " - " + (findDataShowVersion()?.USB_FLASH || "")
|
||||
: "")
|
||||
: ""}
|
||||
</Text>
|
||||
<Flex direction={"column"}>
|
||||
<Flex>
|
||||
<Text size="md" mr={"sm"} fw={"bold"}>
|
||||
Mem:
|
||||
</Text>
|
||||
<Text size="md">
|
||||
{findDataShowVersion()
|
||||
? findDataShowVersion()?.MEMORY || ""
|
||||
: ""}
|
||||
</Text>
|
||||
</Flex>
|
||||
<Flex>
|
||||
<Text size="md" mr={"sm"} fw={"bold"}>
|
||||
Flash:
|
||||
</Text>
|
||||
<Text size="md">
|
||||
{findDataShowVersion()
|
||||
? findDataShowVersion()?.USB_FLASH
|
||||
: ""}
|
||||
</Text>
|
||||
</Flex>
|
||||
</Flex>
|
||||
<Box>
|
||||
<Flex justify={"space-between"} align={"center"}>
|
||||
|
|
|
|||
Loading…
Reference in New Issue