summaryrefslogtreecommitdiffstats
path: root/system
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
parent9c0b890bb15394d8d6d976df65a9aa7c19c1c33d (diff)
Cleaned up for pull request.
Signed-off-by: Sajan Parikh <sajan@noppix.com>
Diffstat (limited to 'system')
-rw-r--r--system/language/english/form_validation_lang.php10
-rw-r--r--system/libraries/Form_validation.php4
2 files changed, 6 insertions, 8 deletions
diff --git a/system/language/english/form_validation_lang.php b/system/language/english/form_validation_lang.php
index 476123b06..7c0277c25 100644
--- a/system/language/english/form_validation_lang.php
+++ b/system/language/english/form_validation_lang.php
@@ -28,21 +28,21 @@ defined('BASEPATH') OR exit('No direct script access allowed');
$lang['form_validation_required'] = 'The {field} field is required.';
$lang['form_validation_isset'] = 'The {field} field must have a value.';
-$lang['form_validation_valid_email'] = 'The {field} field must contain a valid email address.';
-$lang['form_validation_valid_emails'] = 'The {field} field must contain all valid email addresses.';
+$lang['form_validation_valid_email'] = 'The {field} field must contain a valid email address.';
+$lang['form_validation_valid_emails'] = 'The {field} field must contain all valid email addresses.';
$lang['form_validation_valid_url'] = 'The {field} field must contain a valid URL.';
$lang['form_validation_valid_ip'] = 'The {field} field must contain a valid IP.';
$lang['form_validation_min_length'] = 'The {field} field must be at least {param} characters in length.';
$lang['form_validation_max_length'] = 'The {field} field cannot exceed {param} characters in length.';
-$lang['form_validation_exact_length'] = 'The {field} field must be exactly {param} characters in length.';
+$lang['form_validation_exact_length'] = 'The {field} field must be exactly {param} characters in length.';
$lang['form_validation_alpha'] = 'The {field} field may only contain alphabetical characters.';
-$lang['form_validation_alpha_numeric'] = 'The {field} field may only contain alpha-numeric characters.';
+$lang['form_validation_alpha_numeric'] = 'The {field} field may only contain alpha-numeric characters.';
$lang['form_validation_alpha_numeric_spaces'] = 'The {field} field may only contain alpha-numeric characters and spaces.';
$lang['form_validation_alpha_dash'] = 'The {field} field may only contain alpha-numeric characters, underscores, and dashes.';
$lang['form_validation_numeric'] = 'The {field} field must contain only numbers.';
$lang['form_validation_is_numeric'] = 'The {field} field must contain only numeric characters.';
$lang['form_validation_integer'] = 'The {field} field must contain an integer.';
-$lang['form_validation_regex_match'] = 'The {field} field is not in the correct format.';
+$lang['form_validation_regex_match'] = 'The {field} field is not in the correct format.';
$lang['form_validation_matches'] = 'The {field} field does not match the {param} field.';
$lang['form_validation_differs'] = 'The {field} field must differ from the {param} field.';
$lang['form_validation_is_unique'] = 'The {field} field must contain a unique value.';
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);
}
// --------------------------------------------------------------------