Skip to content

Commit

Permalink
fix: use the same email pattern as in Flow (18.0) (#443)
Browse files Browse the repository at this point in the history
* fix: use the same email pattern as in Flow

* chore: Update NpmPackages versions
  • Loading branch information
web-padawan authored Nov 25, 2020
1 parent c954a11 commit 00dd8c6
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ public class EmailField extends GeneratedVaadinEmailField<EmailField, String>
implements HasSize, HasValidation, HasValueChangeMode,
HasPrefixAndSuffix, InputNotifier, KeyNotifier, CompositionNotifier,
HasAutocomplete, HasAutocapitalize, HasAutocorrect, HasHelper {
private static final String EMAIL_PATTERN = "^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:.[a-zA-Z0-9-]+)*$";
private static final String EMAIL_PATTERN = "^" + "([a-zA-Z0-9_\\.\\-+])+" // local
+ "@" + "[a-zA-Z0-9-.]+" // domain
+ "\\." + "[a-zA-Z0-9-]{2,}" // tld
+ "$";

private ValueChangeMode currentMode;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"WebComponent: Vaadin.EmailFieldElement#2.3.0-alpha8",
"Flow#1.3-SNAPSHOT" })
@Tag("vaadin-email-field")
@NpmPackage(value = "@vaadin/vaadin-text-field", version = "2.8.1")
@NpmPackage(value = "@vaadin/vaadin-text-field", version = "2.8.2")
@JsModule("@vaadin/vaadin-text-field/src/vaadin-email-field.js")
public abstract class GeneratedVaadinEmailField<R extends GeneratedVaadinEmailField<R, T>, T>
extends GeneratedVaadinTextField<R, T> implements HasStyle {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"WebComponent: Vaadin.NumberFieldElement#2.3.0-alpha8",
"Flow#1.3-SNAPSHOT" })
@Tag("vaadin-number-field")
@NpmPackage(value = "@vaadin/vaadin-text-field", version = "2.8.1")
@NpmPackage(value = "@vaadin/vaadin-text-field", version = "2.8.2")
@JsModule("@vaadin/vaadin-text-field/src/vaadin-number-field.js")
public abstract class GeneratedVaadinNumberField<R extends GeneratedVaadinNumberField<R, T>, T>
extends GeneratedVaadinTextField<R, T> implements HasStyle {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"WebComponent: Vaadin.PasswordFieldElement#2.3.0-alpha8",
"Flow#1.3-SNAPSHOT" })
@Tag("vaadin-password-field")
@NpmPackage(value = "@vaadin/vaadin-text-field", version = "2.8.1")
@NpmPackage(value = "@vaadin/vaadin-text-field", version = "2.8.2")
@JsModule("@vaadin/vaadin-text-field/src/vaadin-password-field.js")
public abstract class GeneratedVaadinPasswordField<R extends GeneratedVaadinPasswordField<R, T>, T>
extends GeneratedVaadinTextField<R, T> implements HasStyle {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
"WebComponent: Vaadin.TextAreaElement#2.3.0-alpha8",
"Flow#1.3-SNAPSHOT" })
@Tag("vaadin-text-area")
@NpmPackage(value = "@vaadin/vaadin-text-field", version = "2.8.1")
@NpmPackage(value = "@vaadin/vaadin-text-field", version = "2.8.2")
@JsModule("@vaadin/vaadin-text-field/src/vaadin-text-area.js")
public abstract class GeneratedVaadinTextArea<R extends GeneratedVaadinTextArea<R, T>, T>
extends AbstractSinglePropertyField<R, T>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
"WebComponent: Vaadin.TextFieldElement#2.3.0-alpha8",
"Flow#1.3-SNAPSHOT" })
@Tag("vaadin-text-field")
@NpmPackage(value = "@vaadin/vaadin-text-field", version = "2.8.1")
@NpmPackage(value = "@vaadin/vaadin-text-field", version = "2.8.2")
@JsModule("@vaadin/vaadin-text-field/src/vaadin-text-field.js")
public abstract class GeneratedVaadinTextField<R extends GeneratedVaadinTextField<R, T>, T>
extends AbstractSinglePropertyField<R, T>
Expand Down

0 comments on commit 00dd8c6

Please sign in to comment.