Cleaned up for pull request.
Signed-off-by: Sajan Parikh <sajan@noppix.com>
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php
index 7b9215c..1511d9a 100644
--- a/system/libraries/Form_validation.php
+++ b/system/libraries/Form_validation.php
@@ -1230,8 +1230,6 @@
}
// --------------------------------------------------------------------
-
- // --------------------------------------------------------------------
/**
* Alpha-numeric w/ spaces
@@ -1241,7 +1239,7 @@
*/
public function alpha_numeric_spaces($str)
{
- return (bool) preg_match('#^[A-Z0-9 ]+$#i', $str);
+ return (bool) preg_match('/^[A-Z0-9 ]+$/i', $str);
}
// --------------------------------------------------------------------