X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=scripts%2Flib%2Fcocanwiki_strings.ml;h=5a3f5f3b3d23b533b020d639e136cb201c82891c;hb=d303f75eed3a09bbe2516d9a2a9a4aa9b862ceb3;hp=7939e74bc2b589b0afc5c7d2f14f60dd848a8db0;hpb=fb1c781bdbe4a2b296651a051dda11d210c9ad33;p=cocanwiki.git diff --git a/scripts/lib/cocanwiki_strings.ml b/scripts/lib/cocanwiki_strings.ml index 7939e74..5a3f5f3 100644 --- a/scripts/lib/cocanwiki_strings.ml +++ b/scripts/lib/cocanwiki_strings.ml @@ -1,7 +1,7 @@ (* COCANWIKI - a wiki written in Objective CAML. * Written by Richard W.M. Jones . * Copyright (C) 2004 Merjis Ltd. - * $Id: cocanwiki_strings.ml,v 1.2 2004/12/01 13:55:55 rich Exp $ + * $Id: cocanwiki_strings.ml,v 1.3 2006/03/27 16:43:44 rich Exp $ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -22,7 +22,7 @@ open ExtString let string_contains substr str = - try String.find str substr; true + try ignore (String.find str substr); true with Invalid_string -> false let string_of_char = String.make 1