package sg.ncl.testbed_interface;

import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Getter
@Setter
@Slf4j
public class PublicUser implements Serializable {

    @Pattern(regexp = "[A-Za-z -']")
    private String fullName;
    @NotEmpty
    @Email
    private String email;
    @Pattern(regexp = "[A-Za-z -']")
    private String jobTitle;
    @Pattern(regexp = "[A-Za-z -']")
    private String institution;
    @Pattern(regexp = "[A-Za-z -']")
    private String country;

}

@@ -374,32 +374,33 @@
 ttern(regexp = %22
+%5E
 %5BA-Za-z -'%5D%22)%0A  
@@ -386,32 +386,34 @@
  = %22%5E%5BA-Za-z -'%5D
++$
 %22)%0A    private S
@@ -494,32 +494,33 @@
 ttern(regexp = %22
+%5E
 %5BA-Za-z -'%5D%22)%0A  
@@ -506,32 +506,34 @@
  = %22%5E%5BA-Za-z -'%5D
++$
 %22)%0A    private S
@@ -563,32 +563,33 @@
 ttern(regexp = %22
+%5E
 %5BA-Za-z -'%5D%22)%0A  
@@ -575,32 +575,34 @@
  = %22%5E%5BA-Za-z -'%5D
++$
 %22)%0A    private S
@@ -643,16 +643,17 @@
 gexp = %22
+%5E
 %5BA-Za-z 
@@ -655,16 +655,18 @@
 Za-z -'%5D
++$
 %22)%0A    p

Fix validate annotation regex