fix(android): use valid email regex in act representative flow
Android CI / RC / Android · lint, tests, debug APK, release compile (push) Failing after 2m38s
DH V2 CI / API · typecheck, tests, build (push) Successful in 32s
DH V2 CI / WEB · typecheck, build (push) Successful in 19s
Production dependency audit / API · production dependencies (push) Successful in 9s
Production dependency audit / WEB · production dependencies (push) Successful in 8s
DH V2 CI / Docker / scripts contract (push) Successful in 49s

This commit is contained in:
2026-09-14 16:01:49 -03:00
parent 7fe59bccd2
commit becf9fc050
@@ -434,7 +434,7 @@ class MainViewModel(application: Application) : AndroidViewModel(application) {
) {
val actId = selectedAct?.id ?: return
val normalizedEmail = email?.trim().orEmpty()
val emailValid = Regex("^[^\s@]+@[^\s@]+\.[^\s@]+$").matches(normalizedEmail)
val emailValid = Regex("""^[^\s@]+@[^\s@]+\.[^\s@]+$""").matches(normalizedEmail)
if (fullName.isBlank() || documentNumber.isBlank() || position.isBlank() || !emailValid) {
error = "Completá nombres y apellidos, DNI, cargo/función y un email válido del representante de la empresa."
return