]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/ViewDiff.pm
get rid of unnecessary bytes::length usage
[public-inbox.git] / lib / PublicInbox / ViewDiff.pm
index 05acc2420a85ec81b8ad821303ecf8c168ca9dd6..f492b6971981706753480f8bc36554f7cd43b120 100644 (file)
@@ -77,7 +77,7 @@ sub anchor0 ($$$$) {
        # which works well in practice. If projects put "=>", or trailing
        # spaces in filenames, oh well :P
        $fn =~ s/$DIFFSTAT_COMMENT//;
-       $fn =~ s/{(?:.+) => (.+)}/$1/ or $fn =~ s/.* => (.+)/$1/;
+       $fn =~ s/\{(?:.+) => (.+)\}/$1/ or $fn =~ s/.* => (.+)/$1/;
        $fn = git_unquote($fn);
 
        # long filenames will require us to check in anchor1()