Skip to content

Commit bc916e9

Browse files
TrottMylesBorins
authored andcommitted
tools,gyp: fix regex for version matching
Tool versions can be 10 and higher. Float patch from node-gyp to accommodate this fact of life. PR-URL: #21216 Refs: nodejs/node-gyp@293092c Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent d82f8c4 commit bc916e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/gyp/pylib/gyp/xcode_emulation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,7 @@ def XcodeVersion():
12621262
except:
12631263
version = CLTVersion()
12641264
if version:
1265-
version = re.match(r'(\d\.\d\.?\d*)', version).groups()[0]
1265+
version = re.match(r'(\d+\.\d+\.?\d*)', version).groups()[0]
12661266
else:
12671267
raise GypError("No Xcode or CLT version detected!")
12681268
# The CLT has no build information, so we return an empty string.

0 commit comments

Comments
 (0)