Browse Source

fix: 修复对空例句的调整

SongZihuan 3 years ago
parent
commit
42de503e5f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/word.py

+ 1 - 1
core/word.py

@@ -136,7 +136,7 @@ class Word:
 
         def add_eg(self, eg: str):
             eg = eg.strip()
-            if eg == "##":
+            if eg == "##" or len(eg) == 0:
                 return
             self.eg.append(eg)