From 3e948338a90dd6bd0ddc2582cf37c908f3611c56 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Tue, 8 Oct 2019 21:41:10 -0500 Subject: hscript: handle packages with dot (.) character Example: libssl1.0 --- hscript/meta.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hscript') 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 all_pkgs; -- cgit v1.2.3-60-g2f50