Skip to content

Commit 35d0c97

Browse files
authored
Update regex for extracting Xcode version (#302)
1 parent bbe713a commit 35d0c97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/command_line_tools.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def enable_install_on_demand
6060
end
6161

6262
def xcode_version(product)
63-
product.match(/Xcode.{0,20}-(?<version>\d+\.\d+)/)['version']
63+
product.match(/Xcode.{0,20}-(?<version>\d+\.\d+(?:\.\d+)?)/)['version']
6464
end
6565

6666
def macos_version

0 commit comments

Comments
 (0)