react-multi-email
Advanced tools
Comparing version 0.4.1 to 0.4.3
@@ -40,3 +40,3 @@ "use strict"; | ||
function isFQDN(str, options) { | ||
options = __assign({}, options, defaultFqdnOptions); | ||
options = __assign({}, defaultFqdnOptions, options); | ||
/* Remove the optional trailing dot before checking validity */ | ||
@@ -77,3 +77,3 @@ if (options.allowTrailingDot && str[str.length - 1] === '.') { | ||
function isEmail(str, options) { | ||
options = __assign({}, options, defaultEmailOptions); | ||
options = __assign({}, defaultEmailOptions, options); | ||
if (options.requireDisplayName || options.allowDisplayName) { | ||
@@ -80,0 +80,0 @@ var displayEmail = str.match(displayName); |
@@ -30,3 +30,3 @@ // forked from https://github.com/chriso/validator.js | ||
function isFQDN(str, options) { | ||
options = Object.assign({}, options, defaultFqdnOptions); | ||
options = Object.assign({}, defaultFqdnOptions, options); | ||
/* Remove the optional trailing dot before checking validity */ | ||
@@ -67,3 +67,3 @@ if (options.allowTrailingDot && str[str.length - 1] === '.') { | ||
function isEmail(str, options) { | ||
options = Object.assign({}, options, defaultEmailOptions); | ||
options = Object.assign({}, defaultEmailOptions, options); | ||
if (options.requireDisplayName || options.allowDisplayName) { | ||
@@ -70,0 +70,0 @@ const displayEmail = str.match(displayName); |
{ | ||
"name": "react-multi-email", | ||
"version": "0.4.1", | ||
"version": "0.4.3", | ||
"description": "React multi email input", | ||
@@ -5,0 +5,0 @@ "jsnext:main": "es6/index.js", |
@@ -0,1 +1,4 @@ | ||
[![npm version](https://badge.fury.io/js/react-multi-email.svg)](https://badge.fury.io/js/react-multi-email) | ||
[![](https://img.shields.io/npm/dm/react-multi-email.svg)](https://www.npmjs.com/package/react-multi-email) | ||
# react-multi-email | ||
@@ -5,6 +8,6 @@ | ||
* Simple code | ||
* No dependency | ||
* Small size | ||
* Simple customization | ||
- Simple code | ||
- No dependency | ||
- Small size | ||
- Simple customization | ||
@@ -44,3 +47,3 @@ [See Demo](https://codesandbox.io/s/jpvjk8m5o9) | ||
<ReactMultiEmail | ||
placeholder='placeholder' | ||
placeholder="placeholder" | ||
emails={emails} | ||
@@ -47,0 +50,0 @@ onChange={(_emails: string[]) => { |
26724
82