Skip to content

Commit

Permalink
fixes unnecessary full stop at ends of sentences
Browse files Browse the repository at this point in the history
  • Loading branch information
prehensile committed Mar 26, 2012
1 parent bb2873a commit e92e94d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion verbivorejr.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def join_sentence( arr_words ):
else:
str_out = "%s%s" % ( str_out, word )
last_word = word
if str_out[-1:] != ".":
if re.match( "\w", str_out[-1:] ):
str_out = "%s." % str_out
return str_out

Expand Down

0 comments on commit e92e94d

Please sign in to comment.