Skip to content

Commit 717b938

Browse files
committed
Ensure that form data persists when validation fails.
1 parent ef41f56 commit 717b938

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/js/mailchimp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
$('#mc_message').html(data);
1414

1515
// See if we're successful, if so, wipe the fields
16-
const reg = /class="|'mc_success_msg"|'/i;
16+
const reg = /class=(["'])mc_success_msg\1/i;
1717

1818
if (reg.test(data)) {
1919
$('#mc_signup_form').each(function () {

0 commit comments

Comments
 (0)