aw-front-helpers 2.3.10 → 2.3.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -159,7 +159,7 @@ class FormControl {
159
159
  if ( el.getAttribute('pattern') && el.value !== '') {
160
160
  const pattern = el.getAttribute('pattern');
161
161
  const rgx = new RegExp(pattern);
162
- if(rgx.test(el.value)){
162
+ if(!rgx.test(el.value)){
163
163
  validate = false;
164
164
  this.setError(el, this._options.i18n.pattern);
165
165
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aw-front-helpers",
3
- "version": "2.3.10",
3
+ "version": "2.3.11",
4
4
  "description": "Assets helpers for projects",
5
5
  "author": "Yoann Le Poupon",
6
6
  "license": "ISC",