mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
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: https://github.com/nodejs/node/pull/21216 Refs: https://github.com/nodejs/node-gyp/commit/293092c362febffe19f72712467565045e08e8f1 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>
This commit is contained in:
1 parent
4de7e0c96c
commit
1e49eadd68
1 file changed
+1
-1
@@ -1403,7 +1403,7 @@ def XcodeVersion():
|
||||
except:
|
||||
version = CLTVersion()
|
||||
if version:
|
||||
version = re.match(r'(\d\.\d\.?\d*)', version).groups()[0]
|
||||
version = re.match(r'(\d+\.\d+\.?\d*)', version).groups()[0]
|
||||
else:
|
||||
raise GypError("No Xcode or CLT version detected!")
|
||||
# The CLT has no build information, so we return an empty string.
|
||||
|
||||
Reference in new issue
Block a user