aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/cat-texi.perl
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2017-01-22 02:41:50 +0000
committerJunio C Hamano <gitster@pobox.com>2017-01-23 10:56:21 -0800
commitf7bf8feaf504767d1c147cc8cd03d7df2539ba47 (patch)
tree1fb227d4a2f75912d1eb460d435f67259060ac5e /Documentation/cat-texi.perl
parentad36dc8b4b165bf9eb3576b42a241164e312d48c (diff)
downloadgit-f7bf8feaf504767d1c147cc8cd03d7df2539ba47.tar.gz
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 <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/cat-texi.perl')
-rwxr-xr-xDocumentation/cat-texi.perl2
1 files changed, 1 insertions, 1 deletions
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 @@ while (<STDIN>) {
if (s/^\@top (.*)/\@node $1,,,Top/) {
push @menu, $1;
}
- s/\(\@pxref{\[(URLS|REMOTES)\]}\)//;
+ s/\(\@pxref\{\[(URLS|REMOTES)\]}\)//;
s/\@anchor\{[^{}]*\}//g;
print TMP;
}