mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
parent
a0bbf98fba
commit
5235f74adf
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ class MachineManagerModel(QObject):
|
|||
# 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 == "":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue