summaryrefslogtreecommitdiff
path: root/hscript/meta.cc
diff options
context:
space:
mode:
Diffstat (limited to 'hscript/meta.cc')
-rw-r--r--hscript/meta.cc2
1 files changed, 1 insertions, 1 deletions
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),