Skip to content

Commit 4a8e1d0

Browse files
author
Sascha Goldhofer
committed
Fix add catch undefined property
1 parent b7648ee commit 4a8e1d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/string.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def get_end_diff(first, second):
3030
index = 0
3131
result = ""
3232
for c in first:
33-
if c is second[index]:
33+
if index in second and c is second[index]:
3434
index += 1
3535
result = c + result
3636
else:

0 commit comments

Comments
 (0)