From 84abb8ac04810b7660ca31324b04296af2d80782 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Thu, 12 Apr 2018 12:25:05 +0200 Subject: [PATCH] Fix regex used for cleaning up snippets --- src/rcldb/rclabsfromtext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rcldb/rclabsfromtext.cpp b/src/rcldb/rclabsfromtext.cpp index f4b5cfc8..b84282b5 100644 --- a/src/rcldb/rclabsfromtext.cpp +++ b/src/rcldb/rclabsfromtext.cpp @@ -51,7 +51,7 @@ namespace Rcl { static const string cstr_nc("\n\r\x0c\\"); // Things that we don't want to repeat in a displayed snippet. // e.g. > > > > > > -static const string punctcls("[<>.-_+,#*=]"); +static const string punctcls("[-<>._+,#*=|]"); static const string punctRE = "(" + punctcls + " *)(" + punctcls + " *)+"; static std::regex fixfrag_re(punctRE); static string fixfrag(const string& infrag)