We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e94e57a commit cb46b9bCopy full SHA for cb46b9b
dist/index.js
@@ -171,7 +171,7 @@ exports.parsePlistFile = (plistPath) => {
171
};
172
exports.getInstalledXcodeApps = () => {
173
const applicationsDirectory = "/Applications";
174
- const xcodeAppFilenameRegex = /Xcode_([\d.]+)(_beta)?\.app/;
+ const xcodeAppFilenameRegex = /^Xcode.*\.app$/;
175
const allApplicationsChildItems = fs.readdirSync(applicationsDirectory, { encoding: "utf8", withFileTypes: true });
176
const allApplicationsRealItems = allApplicationsChildItems.filter(child => !child.isSymbolicLink() && child.isDirectory());
177
const xcodeAppsItems = allApplicationsRealItems.filter(app => xcodeAppFilenameRegex.test(app.name));
0 commit comments