Skip to content

Commit

Permalink
formatting: check words' regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit-pierre committed Dec 4, 2017
1 parent 98c459c commit ccd68b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plover/formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ def iter_last_words(self, strip=False, rx=WORD_RX):
passed as <rx>, then it must include trailing whitespace as
part of each word.
"""
assert not rx.groups
for fragment in self.iter_last_fragments():
# Split each fragment into words.
for word in reversed(rx.findall(fragment)):
Expand Down

0 comments on commit ccd68b1

Please sign in to comment.