Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekSimpson committed Aug 11, 2023
1 parent a1bb548 commit 1c77e3b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,11 @@ boolean after(String s) {
public static class IsAlphanumericSpace {
@BeforeTemplate
boolean before(String s) {
return StringUtils.isAlphanumericSpace("^[a-zA-Z0-9\\s]*$");
return StringUtils.isAlphanumericSpace(s);
}

boolean after(String s) {
return s.matches("^[a-zA-Z0-9\\s]*$");
}
}

Expand Down

0 comments on commit 1c77e3b

Please sign in to comment.