]> Sergey Matveev's repositories - public-inbox.git/commit
quiet "Complex regular subexpression recursion limit" warnings
authorEric Wong <e@yhbt.net>
Fri, 3 Apr 2020 21:06:20 +0000 (21:06 +0000)
committerEric Wong <e@yhbt.net>
Fri, 3 Apr 2020 21:46:55 +0000 (21:46 +0000)
commit1a02e2d367b71eca9fc8093ce83fcae50873003d
tree99012da5753e87dca4293258d5e160d87b217b07
parentfc92ce8845ac5f09939722537624fa48441f7c0b
quiet "Complex regular subexpression recursion limit" warnings

These seem mostly harmless since Perl will just truncate the
match and start a new one on a newline boundary in our case.
The only downside is we'd end up with redundant <span> tags in
HTML.

Limiting the number of line matched ourselves with `{1,$NUM}'
doesn't seem prudent since lines vary in length, so we continue
to defer the job of limiting matches to the Perl regexp engine.

I've noticed this warning in practice on 100K+ line patches to
locale data.
lib/PublicInbox/MsgIter.pm
lib/PublicInbox/SearchIdx.pm
lib/PublicInbox/View.pm
lib/PublicInbox/ViewDiff.pm
t/msg_iter.t