Skip to content

Commit 28170e6

Browse files
committed
fix: ensure xcode.js change that uses replaceAll can run on node 14.x by replacing replaceAll with replace and a regex pattern instead
1 parent 84664ed commit 28170e6

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)