Merge pull request #119 from ya0guang/patch-3

Fix an logic error in stardict.py
This commit is contained in:
Linwei authored and GitHub committed 2024-03-30 06:14:01 +08:00
commit 1e49e5f360
1 file changed
+2 -2
+2 -2
View File
@@ -1730,8 +1730,8 @@ class DictHelper (object):
return False
if len(word) == 1:
x = ord(word)
if (x < ord('a')) and (x > ord('z')):
if (x < ord('A')) and (x > ord('Z')):
if (x < ord('a')) or (x > ord('z')):
if (x < ord('A')) or (x > ord('Z')):
return False
if (' ' not in word) and ('-' not in word):
if ('?' in word) or ('!' in word):