About half way through switching cocanwiki to using the new PG interface.
[cocanwiki.git] / scripts / lib / cocanwiki_strings.ml
index 7939e74..5a3f5f3 100644 (file)
@@ -1,7 +1,7 @@
 (* COCANWIKI - a wiki written in Objective CAML.
  * Written by Richard W.M. Jones <rich@merjis.com>.
  * 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