better regexp for reg entries

This commit is contained in:
Ken Martin 2001-06-06 09:44:20 -04:00
parent d84a68d067
commit 4a8d3fc1e3
1 changed files with 1 additions and 1 deletions

View File

@ -270,7 +270,7 @@ bool ReadAValue(std::string &res, const char *key)
void cmSystemTools::ExpandRegistryValues(std::string& source) void cmSystemTools::ExpandRegistryValues(std::string& source)
{ {
#if defined(_WIN32) && !defined(__CYGWIN__) #if defined(_WIN32) && !defined(__CYGWIN__)
cmRegularExpression regEntry("\\[(HKEY[A-Za-z0-9_~\\:\\-\\(\\)\\.]*)\\]"); cmRegularExpression regEntry("\\[(HKEY[A-Za-z0-9_~\\:\\-\\(\\)\\.\\; ]*)\\]");
// check for black line or comment // check for black line or comment
while (regEntry.find(source)) while (regEntry.find(source))