[vcpkg_from_github] Fix version regex matching issue (#19815)

This commit is contained in:
Phoebe 2021-09-02 02:10:22 +08:00 committed by GitHub
parent c283f5748f
commit 021e10a7d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ function(vcpkg_from_github)
# Parse the github refs response with regex.
# TODO: add json-pointer support to vcpkg
file(READ "${archive_version}" version_contents)
if(NOT version_contents MATCHES [["sha": "([a-f0-9]+)"]])
if(NOT version_contents MATCHES [["sha":"([a-f0-9]+)"]])
message(FATAL_ERROR "Failed to parse API response from '${version_url}':
${version_contents}