Index: tableofcontents.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/tableofcontents/tableofcontents.module,v
retrieving revision 1.2.4.2.2.4
diff -u -r1.2.4.2.2.4 tableofcontents.module
--- tableofcontents.module	13 Mar 2008 02:53:00 -0000	1.2.4.2.2.4
+++ tableofcontents.module	11 May 2008 21:28:20 -0000
@@ -88,7 +88,7 @@
         if (count($options_str,1) > 2) {
 
           // parse separate options
-          preg_match_all('/([A-z]+): ?([A-z0-9 ]+);/', $options_str[1][0], $options, PREG_PATTERN_ORDER);
+          preg_match_all('/([A-z]+): ?([^;]+);/', $options_str[1][0], $options, PREG_PATTERN_ORDER);
 
           // make sure arguments contain valid option identifiers
           $allowed_options = array_keys($toc_options);
