]> Sergey Matveev's repositories - public-inbox.git/commit
viewdiff: escape '{' and '}' for regexp
authorEric Wong <e@80x24.org>
Fri, 28 May 2021 00:07:53 +0000 (00:07 +0000)
committerEric Wong <e@80x24.org>
Fri, 28 May 2021 03:46:34 +0000 (03:46 +0000)
commit7957be919f9fcf2c1dd9a2c0c1cc1e775de1ff52
tree7f2d2f3cbe94d4cdf9464243e4c20bf8e928b5d2
parent2bc155b455048b127e5ae883a0e5a9964ef437ae
viewdiff: escape '{' and '}' for regexp

Perl 5 doesn't warn on this, yet, but it warns on unescaped
'(' and ')' nowadays, so it's conceivable Perl could start
warning on this in the future.  So future-proof our code and
reduce reader confusion.
lib/PublicInbox/ViewDiff.pm