Skip to content

Commit 3ed552e

Browse files
committed
check str length
1 parent 9ab4d94 commit 3ed552e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythainlp/soundex/lk82.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def lk82(text):
4444
res.append(text[0].translate(_TRANS1))
4545
text = text[1:]
4646
else:
47-
if len(text) > 0:
47+
if len(text) > 1:
4848
res.append(text[1].translate(_TRANS1))
4949
res.append(text[0].translate(_TRANS2))
5050
text = text[2:]

0 commit comments

Comments
 (0)