summaryrefslogtreecommitdiffstats
path: root/system/libraries/Form_validation.php
diff options
context:
space:
mode:
authorSajan Parikh <sajan@noppix.com>2013-02-04 19:25:49 +0100
committerSajan Parikh <sajan@noppix.com>2013-02-04 19:25:49 +0100
commitdf3bfed9c19fe22d6449e2ee78ca5bd2fe9c6476 (patch)
tree7618eb5aa281509e4029992637a35c7a84cb0b51 /system/libraries/Form_validation.php
parent9c0b890bb15394d8d6d976df65a9aa7c19c1c33d (diff)
Cleaned up for pull request.
Signed-off-by: Sajan Parikh <sajan@noppix.com>
Diffstat (limited to 'system/libraries/Form_validation.php')
-rw-r--r--system/libraries/Form_validation.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php
index 7b9215c04..1511d9add 100644
--- a/system/libraries/Form_validation.php
+++ b/system/libraries/Form_validation.php
@@ -1230,8 +1230,6 @@ class CI_Form_validation {
}
// --------------------------------------------------------------------
-
- // --------------------------------------------------------------------
/**
* Alpha-numeric w/ spaces
@@ -1241,7 +1239,7 @@ class CI_Form_validation {
*/
public function alpha_numeric_spaces($str)
{
- return (bool) preg_match('#^[A-Z0-9 ]+$#i', $str);
+ return (bool) preg_match('/^[A-Z0-9 ]+$/i', $str);
}
// --------------------------------------------------------------------