From 217d400c1e57fa8f8e0abfc6c66e73e0ebcc1e38 Mon Sep 17 00:00:00 2001 From: piaip Date: Thu, 7 Aug 2014 19:54:19 +0000 Subject: Fix crosspost log checker git-svn-id: http://opensvn.csie.org/pttbbs/trunk@6048 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/util/pyutil/pttpost.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pttbbs/util/pyutil/pttpost.py b/pttbbs/util/pyutil/pttpost.py index 04ae0a64..ebd6dc24 100755 --- a/pttbbs/util/pyutil/pttpost.py +++ b/pttbbs/util/pyutil/pttpost.py @@ -35,7 +35,7 @@ CommentsFormatRe = ( # format: "※ " ANSI_COLOR(1;32) "%s" ANSI_COLOR(0;32) ":轉錄至" %s def IsCrossPostLog(buf): return (buf.startswith("※ " + ANSI_COLOR(1,32)) and - buf.index(ANSI_COLOR(0,32) + ':轉錄至' > 0)) + buf.index(ANSI_COLOR(0,32) + ':轉錄至') > 0) def ParseComment(buf): """Parses a buffer for known comment formats. -- cgit v1.2.3