Skip to content

Commit

Permalink
Make spaces optional in exact path dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
rrwick committed Jul 29, 2015
1 parent 4828a85 commit b99a5d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graph/path.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ Path Path::makeFromString(QString pathString, bool circular,
{
Path path;

QRegularExpression re("^(?:\\(([0-9]+)\\) )*((?:[^,]+[-\\+], )*[^,]+[-\\+])(?: \\(([0-9]+)\\))*$");
QRegularExpression re("^(?:\\(([0-9]+)\\) ?)*((?:[^,]+[-\\+], ?)*[^,]+[-\\+])(?: ?\\(([0-9]+)\\))*$");
QRegularExpressionMatch match = re.match(pathString);

//If the string failed to match the regex, return an empty path.
Expand Down

0 comments on commit b99a5d6

Please sign in to comment.