mailchimp-react
Advanced tools
+1
-1
@@ -109,3 +109,3 @@ (function (global, factory) { | ||
| e.preventDefault(); | ||
| var url = (action + "&" + e.target.value).replace("/post?", "/post-json?"); | ||
| var url = (action + "&EMAIL=" + email).replace("/post?", "/post-json?"); | ||
| var regex = /^([\w_\.\-\+])+\@([\w\-]+\.)+([\w]{2,10})+$/; | ||
@@ -112,0 +112,0 @@ !regex.test(email) ? setStatus("empty") : sendData(url); |
+1
-1
| { | ||
| "name": "mailchimp-react", | ||
| "version": "0.0.3", | ||
| "version": "0.0.4", | ||
| "description": "React subscribe field for Mailchimp", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
+1
-1
@@ -34,3 +34,3 @@ import React, { useState } from "react"; | ||
| e.preventDefault(); | ||
| const url = `${action}&${e.target.value}`.replace("/post?", "/post-json?"); | ||
| const url = `${action}&EMAIL=${email}`.replace("/post?", "/post-json?"); | ||
| const regex = /^([\w_\.\-\+])+\@([\w\-]+\.)+([\w]{2,10})+$/; | ||
@@ -37,0 +37,0 @@ !regex.test(email) ? setStatus("empty") : sendData(url); |
10785
-0.06%