Make Xcode regex more flexible

This commit is contained in:
Michael B. Gale
2026-10-28 12:30:50 +00:00
parent 97b90230e5
commit eff66e8fb1
3 changed files with 31 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ export const XCODE_SELECT_LINK_PATH = "/private/var/db/xcode_select_link";
/** The pattern we expect to find in the Xcode path. */
export const XCODE_APP_FILENAME_PATTERN = new RegExp(
/(?<filename>Xcode_(?<majorMinor>\d+(\.\d+)?)\.app)/,
/(?<filename>Xcode_(?<majorMinor>\d+(\.\d+)?).*\.app)/,
);
/**