From: brian m. carlson Date: Sun, 22 Jan 2017 02:41:50 +0000 (+0000) Subject: Documentation: fix warning in cat-texi.perl X-Git-Tag: v2.12.0-rc0~12^2~7 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/f7bf8feaf504767d1c147cc8cd03d7df2539ba47 Documentation: fix warning in cat-texi.perl Newer versions of Perl produce the warning "Unescaped left brace in regex is deprecated, passed through in regex" when an unescaped left brace occurs in a regex. Escape the brace to avoid this warning. Signed-off-by: brian m. carlson Signed-off-by: Junio C Hamano --- diff --git a/Documentation/cat-texi.perl b/Documentation/cat-texi.perl index 87437f8a95..b1fe52e8b9 100755 --- a/Documentation/cat-texi.perl +++ b/Documentation/cat-texi.perl @@ -11,7 +11,7 @@ if (s/^\@top (.*)/\@node $1,,,Top/) { push @menu, $1; } - s/\(\@pxref{\[(URLS|REMOTES)\]}\)//; + s/\(\@pxref\{\[(URLS|REMOTES)\]}\)//; s/\@anchor\{[^{}]*\}//g; print TMP; }