]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Documentation: fix warning in cat-texi.perl
authorbrian m. carlson <sandals@crustytoothpaste.net>
Sun, 22 Jan 2017 02:41:50 +0000 (02:41 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 Jan 2017 18:56:21 +0000 (10:56 -0800)
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>
Documentation/cat-texi.perl

index 87437f8a95768595e040b8c4c1d48e5c29ada087..b1fe52e8b9af7aef28501094caac50924de3af1b 100755 (executable)
@@ -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;
 }