Skip to content

Commit 7a35e18

Browse files
Trottrvagg
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 <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent 5362e2f commit 7a35e18

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
@@ -1403,7 +1403,7 @@ def XcodeVersion():
14031403
except:
14041404
version = CLTVersion()
14051405
if version:
1406-
version = re.match(r'(\d\.\d\.?\d*)', version).groups()[0]
1406+
version = re.match(r'(\d+\.\d+\.?\d*)', version).groups()[0]
14071407
else:
14081408
raise GypError("No Xcode or CLT version detected!")
14091409
# The CLT has no build information, so we return an empty string.

0 commit comments

Comments
 (0)