Skip to content

Commit

Permalink
Prevent unique names like "profile #10 #2"
Browse files Browse the repository at this point in the history
  • Loading branch information
fieldOfView committed Jun 6, 2016
1 parent a0bbf98 commit 5235f74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cura/MachineManagerModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def addMachine(self,name, definition_id):
# Create a name that is not empty and unique
def _createUniqueName(self, object_type, name, fallback_name):
name = name.strip()
num_check = re.compile("(.*?)\s*#\d$").match(name)
num_check = re.compile("(.*?)\s*#\d+$").match(name)
if(num_check):
name = num_check.group(1)
if name == "":
Expand Down

0 comments on commit 5235f74

Please sign in to comment.