Skip to main content

Bug Tracker

Side navigation

#2293 closed enhancement (worksforme)

Opened February 07, 2008 01:01PM UTC

Closed February 07, 2008 02:17PM UTC

[validate]

Reported by: Hum4ngus Owned by:
Priority: minor Milestone: 1.2.3
Component: plugin Version: 1.2.2
Keywords: [validate] Cc:
Blocked by: Blocking:
Description

I've made a new email validation.

This because the standard one only has to contain a @, this one accepts the format "user@domein.com".

jQuery.validator.addMethod("email2", function(value) {
			return /^[a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4}$/.test( value ); 
		}, String.format("Please enter a valid email adres."));
Attachments (0)
Change History (1)

Changed February 07, 2008 02:17PM UTC by scott.gonzal comment:1

resolution: → worksforme
status: newclosed

The current email validation does not mark "@" as valid.