Contact Form by WPForms – Drag & Drop Form Builder for WordPress - Version 1.2.8.1

Version Description

  • Fixed: Form javascript email validation being too strict (introducted in 1.2.8)
Download this release

Release Info

Developer jaredatch
Plugin Icon 128x128 Contact Form by WPForms – Drag & Drop Form Builder for WordPress
Version 1.2.8.1
Comparing to
See all releases

Code changes from version 1.2.8 to 1.2.8.1

Files changed (3) hide show
  1. assets/js/wpforms.js +1 -1
  2. readme.txt +3 -0
  3. wpforms.php +2 -2
assets/js/wpforms.js CHANGED
@@ -95,7 +95,7 @@
95
 
96
  // Validate email addresses
97
  $.validator.methods.email = function( value, element ) {
98
- return this.optional( element ) || /[a-z]+@[a-z]+\.[a-z]+/.test( value );
99
  }
100
 
101
  // Finally load jQuery Validation library for our forms
95
 
96
  // Validate email addresses
97
  $.validator.methods.email = function( value, element ) {
98
+ return this.optional( element ) || /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@((?=[a-z0-9-]{1,63}\.)(xn--)?[a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,63}$/.test( value );
99
  }
100
 
101
  // Finally load jQuery Validation library for our forms
readme.txt CHANGED
@@ -163,6 +163,9 @@ Syed Balkhi
163
 
164
  == Changelog ==
165
 
 
 
 
166
  = 1.2.8 =
167
  - Added: Dynamic choice feature for Dropdown, Multiple Choice, and Checkbox fields
168
  - Changed: Loading order of templates and field classes - moved to `init`
163
 
164
  == Changelog ==
165
 
166
+ = 1.2.8.1 =
167
+ - Fixed: Form javascript email validation being too strict (introducted in 1.2.8)
168
+
169
  = 1.2.8 =
170
  - Added: Dynamic choice feature for Dropdown, Multiple Choice, and Checkbox fields
171
  - Changed: Loading order of templates and field classes - moved to `init`
wpforms.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Beginner friendly WordPress contact form plugin. Use our Drag & Drop form builder to create your WordPress forms.
6
  * Author: WPForms
7
  * Author URI: https://wpforms.com
8
- * Version: 1.2.8
9
  * Text Domain: wpforms
10
  * Domain Path: languages
11
  *
@@ -81,7 +81,7 @@ final class WPForms {
81
  * @since 1.0.0
82
  * @var sting
83
  */
84
- public $version = '1.2.8';
85
 
86
  /**
87
  * The form data handler instance.
5
  * Description: Beginner friendly WordPress contact form plugin. Use our Drag & Drop form builder to create your WordPress forms.
6
  * Author: WPForms
7
  * Author URI: https://wpforms.com
8
+ * Version: 1.2.8.1
9
  * Text Domain: wpforms
10
  * Domain Path: languages
11
  *
81
  * @since 1.0.0
82
  * @var sting
83
  */
84
+ public $version = '1.2.8.1';
85
 
86
  /**
87
  * The form data handler instance.