Bug Tracker

Modify

Ticket #2293 (closed enhancement: worksforme)

Opened 6 years ago

Last modified 6 years ago

[validate]

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

Description

I've made a new email validation. This because the standard one only has to contain a @, this one accepts the format "user@…".

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."));

Change History

comment:1 Changed 6 years ago by scott.gonzal

  • Status changed from new to closed
  • Resolution set to worksforme

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.