mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 13:35:56 +08:00
Make regex pattern a raw str to prevent "invalid escape sequence" warning
This commit is contained in:
parent
d1526a4054
commit
260743d842
@ -69,7 +69,7 @@ class ObjectsModel(ListModel):
|
||||
self._group_name_template = catalog.i18nc("@label", "Group #{group_nr}")
|
||||
self._group_name_prefix = self._group_name_template.split("#")[0]
|
||||
|
||||
self._naming_regex = re.compile("^(.+)\(([0-9]+)\)$")
|
||||
self._naming_regex = re.compile(r"^(.+)\(([0-9]+)\)$")
|
||||
|
||||
def setActiveBuildPlate(self, nr: int) -> None:
|
||||
if self._build_plate_number != nr:
|
||||
|
Loading…
x
Reference in New Issue
Block a user