Switch to side-by-side view
--- a/src/rcldb/rclabsfromtext.cpp +++ b/src/rcldb/rclabsfromtext.cpp @@ -54,9 +54,10 @@ static const string punctcls("[-<>._+,#*=|]"); static const string punctRE = "(" + punctcls + " *)(" + punctcls + " *)+"; static std::regex fixfrag_re(punctRE); +static const string punctRep{"$2"}; static string fixfrag(const string& infrag) { - return std::regex_replace(neutchars(infrag, cstr_nc), fixfrag_re, "$2"); + return std::regex_replace(neutchars(infrag, cstr_nc), fixfrag_re, punctRep); }