-
-
Notifications
You must be signed in to change notification settings - Fork 751
Closed
Description
Sometimes the information returned by await getMachineInfo() looks like the example below.
{
nodeInfo: [
'Node',
'22.14.0',
'~\AppData\Local\fnm_multishells\19200_1763624547202\node.EXE'
],
osInfo: [ 'OS', 'Windows 10 10.0.19045' ],
cpuInfo: [ 'CPU', '(12) x64 12th Gen Intel(R) Core(TM) i5-12500' ],
chromeInfo: [ 'Chrome', '142.0.7444.163', 'N/A' ],
edgeInfo: [ 'Edge', [ 'Chromium (140.0.3485.54)' ], 'N/A' ],
firefoxInfo: undefined,
safariInfo: [ 'Safari', 'N/A' ],
playwrightBrowsers: 'chromium: 136.0.7103.25, firefox: 137.0, webkit: 18.4'
}
And the escapeHtml method will cause an immediate exit when handling data like edgeinfo.
function escapeHtml(text) {
output.print(text)
if (!text) return ''
const string = text.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"').replace(/'/g, ''')
output.print(string)
return string
}Copilot
Metadata
Metadata
Assignees
Labels
No labels