Skip to content

Commit 3dab625

Browse files
authored
Merge pull request #235 from narbs/1_7_X
fix: ensure xcode.js change can run on node 14.x
2 parents 84664ed + 28170e6 commit 3dab625

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/xcode.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ exports.detect = function detect(options, callback) {
598598
// - com.apple.CoreSimulator.SimRuntime.watchOS-10-0
599599
for (const key of Object.keys(info.devices)) {
600600
const [_, platform, rawVersion] = key.match(/\.SimRuntime\.(.*?)\-(.*)$/);
601-
const version = rawVersion.replaceAll('-', '.');
601+
const version = rawVersion.replace(/-/g, '.');
602602

603603
const mapping = {
604604
name: `${platform} ${version}`,

0 commit comments

Comments
 (0)