Skip to content

Commit dd6b35d

Browse files
committed
trim before email
1 parent a4c90a9 commit dd6b35d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/plugins/engine/components/EmailAddressField.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ export class EmailAddressField extends FormComponent {
2525

2626
let formSchema = joi
2727
.string()
28-
.email()
2928
.trim()
29+
.email()
3030
.custom((value, helpers: CustomHelpers<string>) =>
3131
preventUnicodeInEmail(value, helpers)
3232
)

0 commit comments

Comments
 (0)