words are of size 2 at least

This commit is contained in:
Lapinot 2020-01-12 20:33:29 +01:00
parent 2f1937d25b
commit 0c4ea492b4
1 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ import textwrap
from docopt import docopt
import logbook
import pyperclip
#import pyperclip
_sysrand = random.SystemRandom()
@ -64,7 +64,7 @@ else:
randrange = _sysrand.randrange
def word_list(files, filter=r'\b([a-zA-Z]+)\b'):
def word_list(files, filter=r'\b([a-zA-Z][a-zA-Z]+)\b'):
pat = re.compile(filter)
words = []
for f in files: