Commits

kiwi  committed 2ef80e4

IntraWordFilter: fix uninitialized var when mergewords=True mergenums=False

  • Participants
  • Parent commits 9c324c9
  • Branches 2.4x

Comments (0)

Files changed (1)

File src/whoosh/analysis.py

                 this = 1
             elif text.isdigit():
                 this = 2
+            else:
+                this = None
 
             # Is this the same type as the previous part?
             if (buf and (this == last == 1 and mergewords)