From cf2867874149ff6fd6c14b2fd3d842dab37f7a98 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Tue, 8 Oct 2019 23:21:18 -0500 Subject: hscript: - and _ are valid hostname characters --- hscript/meta.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hscript/meta.cc b/hscript/meta.cc index 1087ac5..22c5e40 100644 --- a/hscript/meta.cc +++ b/hscript/meta.cc @@ -18,7 +18,7 @@ using namespace Horizon::Keys; Key *Hostname::parseFromData(const std::string data, int lineno, int *errors, int *warnings) { - std::regex valid_re("[A-Za-z0-9.]*"); + std::regex valid_re("[A-Za-z0-9-_.]*"); if(!std::regex_match(data, valid_re)) { if(errors) *errors += 1; output_error("installfile:" + std::to_string(lineno), -- cgit v1.2.3-60-g2f50