]> matita.cs.unibo.it Git - helm.git/commitdiff
Fixed bug in .ann extension handling.
authorStefano Zacchiroli <zack@upsilon.cc>
Fri, 16 Mar 2001 10:44:21 +0000 (10:44 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Fri, 16 Mar 2001 10:44:21 +0000 (10:44 +0000)
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$/) {