Minor fix in renamer indexing

This commit is contained in:
Griatch 2017-09-17 20:51:27 +02:00
parent 4f8d70118e
commit a2403e1d73

View File

@ -90,7 +90,7 @@ def _case_sensitive_replace(string, old, new):
result = []
all_upper = True
for ind, chr in enumerate(old_word):
if ind >= len(new):
if ind >= len(new_word):
break
if chr.isupper():
result.append(new_word[ind].upper())