Roland Ringgenberg
04/27/2025, 2:54 PMprivate fun emailAddressRegex(value: String): Boolean {
val emailRegex = Regex(
// Very basic regex, without checking for edge case or i18n etc
"[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,}"
)
return value.matches(emailRegex)
}
I'm calling it from a BasicTextField using
snapshotFlow()
to update the state.
Btw, the fix of the BasicSecureTextField works like a charm, thx!Roland Ringgenberg
04/28/2025, 7:57 PM