mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 10:59:00 +08:00
Fix #119 [regression]: cannot use numbers in library names
This commit is contained in:
parent
7fd71747d7
commit
5adf575879
@ -5,7 +5,7 @@ namespace vcpkg
|
||||
{
|
||||
static bool is_valid_package_spec_char(char c)
|
||||
{
|
||||
return (c == '-') || (isalnum(c) && islower(c));
|
||||
return (c == '-') || isdigit(c) || (isalpha(c) && islower(c));
|
||||
}
|
||||
|
||||
expected<package_spec> package_spec::from_string(const std::string& spec_as_string, const triplet& default_target_triplet)
|
||||
|
Loading…
Reference in New Issue
Block a user