Skip to content

Commit a5f6696

Browse files
committed
Comment where mentioned validation happens
1 parent 1348bb4 commit a5f6696

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/request/email.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ export default class Email implements EmailProps {
9696

9797
private cleanDomain(domain: string) {
9898
// We don't need to trim the domain as if it has any leading whitespace
99-
// validation rejects it as invalid.
99+
// validation (isEmail()) rejects it as invalid.
100100

101-
// We don't need to strip a trailing '.' because validation rejects domains
102-
// that have it.
101+
// We don't need to strip a trailing '.' because validation (isEmail())
102+
// rejects domains that have it.
103103

104104
domain = punycode.toASCII(domain);
105105

0 commit comments

Comments
 (0)