]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/View.pm
quiet "Complex regular subexpression recursion limit" warnings
[public-inbox.git] / lib / PublicInbox / View.pm
index c42654b68204c67f697278bedfba504850b8c889..70c10604e246ec23314d66580a01bd8b54ac7560 100644 (file)
@@ -576,7 +576,7 @@ sub add_text_body { # callback for msg_iter
        $s .= "\n" unless $s =~ /\n\z/s;
 
        # split off quoted and unquoted blocks:
-       my @sections = split(/((?:^>[^\n]*\n)+)/sm, $s);
+       my @sections = PublicInbox::MsgIter::split_quotes($s);
        $s = '';
        my $rv = $ctx->{obuf};
        if (defined($fn) || $depth > 0 || $err) {