Skip to content

Commit 0ebac13

Browse files
Fix regex
1 parent 4325d4a commit 0ebac13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ async function getPlatform(logsOpt) {
125125
const type = os.type()
126126
const arch = os.arch()
127127
const cpuCore = os.cpus()[0]
128-
const isM1 = /Apple M1|processor/i.test(cpuCore.model)
128+
const isM1 = /Apple (M1|processor)/.test(cpuCore.model)
129129
const linuxInfo = type === 'Linux' ? await getLinuxInfo() : new Map()
130130
const linuxDistro = linuxInfo.get('name')
131131
const release = linuxInfo.get('version') || os.release()

0 commit comments

Comments
 (0)