Skip to content

Commit

Permalink
Refs #6315. Fixing version regex for new PV.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Reuter committed Apr 9, 2013
1 parent c210638 commit 893169e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/Kernel/src/ConfigService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1697,7 +1697,7 @@ const std::string extractVersionNumberFromPipe(const Poco::Pipe& pipe)
Poco::StreamCopier::copyStream(pipeStream, stringStream);
const std::string givenVersion = stringStream.str();
boost::smatch match;
boost::regex expression("(\\d+)\\.(\\d+)$"); // Gets the version number part.
boost::regex expression("(\\d+)\\.(\\d+)\\.?(\\d*)$"); // Gets the version number part.
if(boost::regex_search(givenVersion, match, expression))
{
versionString = match[0];
Expand Down

0 comments on commit 893169e

Please sign in to comment.