]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/http_getter/http_getter.pl.in
Fixed bug in .ann extension handling.
[helm.git] / helm / http_getter / http_getter.pl.in
index 55f16bdc1c8dd2b2d6110830482692f98447440d..67d295624f966a8faf967ca4aa5cedb6114e9942 100755 (executable)
@@ -375,7 +375,7 @@ sub finduris { # find uris for cic and theory trees generation
 
     if ($localpart =~ /^[^\/]*$/) { # no slash, an OBJECT
      $basepart = $localpart;
-     $basepart =~ s/^(.*)\.types(\.ann)?/$1/; # remove exts .types or
+     $basepart =~ s/^([^.]*\.[^.]*)(\.types)?(\.ann)?/$1/; # remove exts .types or
                                               # .types.ann
      $flags = $objects{$basepart}; # get old flags
      if ($localpart =~ /\.ann$/) {