Skip to content

Commit b99a5d6

Browse files
committed
Make spaces optional in exact path dialog
1 parent 4828a85 commit b99a5d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graph/path.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Path Path::makeFromString(QString pathString, bool circular,
113113
{
114114
Path path;
115115

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

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

0 commit comments

Comments
 (0)