-
Notifications
You must be signed in to change notification settings - Fork 6
Closed as not planned
Description
📝 Description
Like suggested by @MichaelStH in #55, we would like to introduce a new EmailAddress type representing an email address on the Internet.
Here's the goal of API that we should provide after completing this topic:
interface EmailAddress {
override fun equals(other: Any?): Boolean
override fun hashCode(): Int
override fun toString(): String
companion object {
fun create(text: String): EmailAddress
fun create(text: String, regex: Regex): EmailAddress
fun createOrNull(text: String): EmailAddress?
fun createOrNull(text: String, regex: Regex): EmailAddress?
}
}✅ Checklist
- ✨ New
EmailAddresstype #339 - 🚚 Moving
EmailAddresstype tokotools.types.webpackage #377 - ✨
EmailAddresssyntax should follow RFC-5322 #394 - 🦺 Support digits in local-part of
EmailAddress#581 - 🦺 Support hyphens and underscores in local-part of
EmailAddress#583 - 🦺 Limiting number of characters in local-part of
EmailAddress#582 - 💥 Signature changes to the regular expression of
EmailAddress#593 - ✨ Making
EmailAddress.Companion.regexPatternavailable on Java #594 - ⏪️ Going back to a simpler regular expression for
EmailAddress#600 - 🔥 Deletion of
EmailAddress.Companion.regexproperty #614 - ✨ New factory functions for
EmailAddressaccepting a custom regular expression #601 - ✨ Stabilization of
EmailAddresstype #369 - Close this topic as completed and update tracking issues if present.
The following issues are nice-to-have but not required for completing the minimum viable API of this type: