Merge pull request #3296 from grahamc/export-reference-graph

exportReferencesGraph: support working
This commit is contained in:
Eelco Dolstra
2020-01-02 11:04:03 +01:00
committed by GitHub
+1 -1
View File
@@ -1985,7 +1985,7 @@ void DerivationGoal::startBuilder()
throw BuildError(format("odd number of tokens in 'exportReferencesGraph': '%1%'") % s);
for (Strings::iterator i = ss.begin(); i != ss.end(); ) {
string fileName = *i++;
static std::regex regex("[A-Za-z_][A-Za-z0-9_.]*");
static std::regex regex("[A-Za-z_][A-Za-z0-9_.-]*");
if (!std::regex_match(fileName, regex))
throw Error("invalid file name '%s' in 'exportReferencesGraph'", fileName);