defender::verify_email PHP Method

verify_email() protected method

Checks if is a valid email address accepts only 50 characters + @ + 4 characters returns str the input or bool FALSE if check fails
protected verify_email ( )
    protected function verify_email()
    {
        if ($this->field_config['required'] && !$this->field_value) {
            self::setInputError($this->field_name);
        }
        if (preg_check("/^[-0-9A-Z_\\.]{1,50}@([-0-9A-Z_\\.]+\\.){1,50}([0-9A-Z]){2,4}\$/i", $this->field_value)) {
            return $this->field_value;
        }
        return FALSE;
    }