diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-08 21:41:10 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-08 21:41:10 -0500 |
commit | 3e948338a90dd6bd0ddc2582cf37c908f3611c56 (patch) | |
tree | 9f701f2bf9c1af747e61732b05b8c742526f844b /hscript/meta.cc | |
parent | 1591ee360fec1863ddf7ed536689e043bb03710e (diff) | |
download | horizon-3e948338a90dd6bd0ddc2582cf37c908f3611c56.tar.gz horizon-3e948338a90dd6bd0ddc2582cf37c908f3611c56.tar.bz2 horizon-3e948338a90dd6bd0ddc2582cf37c908f3611c56.tar.xz horizon-3e948338a90dd6bd0ddc2582cf37c908f3611c56.zip |
hscript: handle packages with dot (.) character
Example: libssl1.0
Diffstat (limited to 'hscript/meta.cc')
-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; |