diff options
author | Eric Wong <e@80x24.org> | 2024-05-11 23:29:40 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2024-05-13 02:48:16 +0000 |
commit | 4d4d39bbefc5e018eae6998f260d59b9b7979756 (patch) | |
tree | 728288988eddbe49b41019dd0ddc7a389f557a1e /lib/PublicInbox/SolverGit.pm | |
parent | 39c390da4f5793bdd08a3634ca34ed9c9bda0700 (diff) | |
download | public-inbox-4d4d39bbefc5e018eae6998f260d59b9b7979756.tar.gz |
I'm not sure when the actual recursion limit was removed, but the warning was removed for Perl 5.37.1. In any case, it's probably not worth doing anything about for older Perls it since it's rarely triggered and it seems nobody cares too much about solver, anyways :<
Diffstat (limited to 'lib/PublicInbox/SolverGit.pm')
-rw-r--r-- | lib/PublicInbox/SolverGit.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/PublicInbox/SolverGit.pm b/lib/PublicInbox/SolverGit.pm index 296e7d17..7984af43 100644 --- a/lib/PublicInbox/SolverGit.pm +++ b/lib/PublicInbox/SolverGit.pm @@ -136,6 +136,12 @@ sub extract_diff ($$) { if ($cte =~ /\bquoted-printable\b/i && $part->crlf eq "\n") { $s =~ s/\r\n/\n/sg; } + + # Quiet "Complex regular subexpression recursion limit" warning. + # Not much we can do about it, but it's no longer relevant to + # Perl 5.3x (the warning was removed in 5.37.1, and actual + # recursino sometime before then). + no warnings 'regexp'; $s =~ m!( # $1 start header lines we save for debugging: # everything before ^index is optional, but we don't |