Fix T71284: batch rename escape's dashes

This commit is contained in:
Campbell Barton 2019-11-03 11:27:03 +11:00
parent 07968604ab
commit 93f93e6b45
Notes: blender-bot 2024-03-22 15:57:27 +01:00
Referenced by issue #71284, Renaming an object with Ctrl-F2 to something with a dash in the name will add a backslash
1 changed files with 1 additions and 1 deletions

View File

@ -2041,7 +2041,7 @@ class WM_OT_batch_rename(Operator):
replace_dst = action.replace_dst.replace("\\", "\\\\")
else:
replace_src = re.escape(action.replace_src)
replace_dst = re.escape(action.replace_dst)
replace_dst = action.replace_dst.replace("\\", "\\\\")
name = re.sub(
replace_src,
replace_dst,