express-form
Advanced tools
Comparing version 0.12.4 to 0.12.5
# express-form changelog | ||
## v0.12.5 (2016/03/23) | ||
* remove upper-bound for TLD length on email validation | ||
## v0.12.4 (2014/11/27) | ||
* update dependencies | ||
## v0.12.3 (2014/07/29) | ||
* fix stack size explosion when using `autoTrim` | ||
## v0.12.2 (2014/04/16) | ||
@@ -4,0 +13,0 @@ * add express 4 support |
@@ -315,3 +315,3 @@ var validator = require("validator") | ||
return this.add(function (value) { | ||
if (typeof value != 'string' || !(/^[\-0-9a-zA-Z\.\+_]+@[\-0-9a-zA-Z\.\+_]+\.[a-zA-Z]{2,4}$/).test(value)) { | ||
if (typeof value != 'string' || !(/^[\-0-9a-zA-Z\.\+_]+@[\-0-9a-zA-Z\.\+_]+\.[a-zA-Z]{2,}$/).test(value)) { | ||
return { error: message || "%s is not an email address" }; | ||
@@ -437,2 +437,2 @@ } | ||
module.exports = Field; | ||
module.exports = Field; |
{ | ||
"author": "Dan Dean <@dandean> (http://dandean.com)", | ||
"author": "Dan Dean (http://dandean.com)", | ||
"name": "express-form", | ||
"description": "Form validation and data filtering for Express", | ||
"version": "0.12.4", | ||
"version": "0.12.5", | ||
"homepage": "http://dandean.github.com/express-form", | ||
@@ -13,4 +13,4 @@ "repository": { | ||
"Marc Harter <wavded@gmail.com>", | ||
"Sugarstack <@sugarstack>", | ||
"Sean Lavine <sean@eternalrise.com>" | ||
"Sugarstack", | ||
"Sean Lavine <lavis88@gmail.com>" | ||
], | ||
@@ -45,3 +45,3 @@ "keywords": [ | ||
"engines": { | ||
"node": ">=0.8.0" | ||
"node": ">=0.10.0" | ||
}, | ||
@@ -48,0 +48,0 @@ "licenses": [ |
@@ -7,4 +7,2 @@ # express-form [![Build Status](https://travis-ci.org/freewil/express-form.svg?branch=master)](https://travis-ci.org/freewil/express-form) | ||
* **Express 2** `npm install express-form@0.11.x` | ||
* **Express 3, 4** `npm install express-form@0.12.x` | ||
@@ -11,0 +9,0 @@ |
@@ -59,3 +59,4 @@ var assert = require("assert"), | ||
"user-ok.yes+tag@host.k12.mi.us", | ||
"FirstNameLastName2000@hotmail.com" | ||
"FirstNameLastName2000@hotmail.com", | ||
"FooBarEmail@foo.apartments" | ||
]; | ||
@@ -62,0 +63,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1760
79033
16
407