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
commit 3469062e76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);