plumber

Plumber – a modern approach to plumbing
git clone git://r-36.net/plumber
Log | Files | Refs | LICENSE

commit 926420c57096a41a8fcd6838124e792d9119b433
parent 09b5306793937ca140918ac54a6c612de50ce579
Author: Christoph Lohmann <20h@r-36.net>
Date:   Sun, 16 Apr 2017 14:31:22 +0200

Better support for sentence parsing.

Diffstat:
bin/plumber | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/bin/plumber b/bin/plumber @@ -117,6 +117,13 @@ def trimstr(s): matchstr = matchstr[1:-1] didtrim = 1 break + elif matchstr[0] == frame[0] and \ + matchstr[-2] == frame[1]: + # When the delimiter is at the end of some + # sentence. + matchstr = matchstr[1:-2] + didtrim = 1 + break if len(matchstr) == 0: return matchstr