diff options
-rw-r--r-- | hscript/meta.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hscript/meta.cc b/hscript/meta.cc index f333f0b..48125dc 100644 --- a/hscript/meta.cc +++ b/hscript/meta.cc @@ -42,7 +42,7 @@ bool Hostname::execute() const { Key *PkgInstall::parseFromData(const std::string data, int lineno, int *errors, int *warnings) { - std::regex valid_pkg("[0-9A-Za-z_-]*((>?<|[<>]?=|[~>])[0-9A-Za-z-_.]+)?"); + std::regex valid_pkg("[0-9A-Za-z_.-]*((>?<|[<>]?=|[~>])[0-9A-Za-z-_.]+)?"); std::string next_pkg; std::istringstream stream(data); std::set<std::string> all_pkgs; |