]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matitaMisc.ml
tagging rc-1
[helm.git] / matita / matitaMisc.ml
index 266aec526920ad8d96bda49f7cca4cd0d29a2861..bb745f7030f968817f544fa4a49d1828eba4795e 100644 (file)
@@ -30,7 +30,10 @@ open Printf
 (** Functions "imported" from Http_getter_misc *)
 
 let normalize_dir = Http_getter_misc.normalize_dir
-let strip_suffix = Http_getter_misc.strip_suffix
+let strip_suffix ~suffix s = 
+  try 
+    Http_getter_misc.strip_suffix ~suffix s
+  with Invalid_argument _ -> s
 
 let absolute_path file =
   if file.[0] = '/' then file else Unix.getcwd () ^ "/" ^ file