MCPcopy Create free account
hub / github.com/Lemoncode/fonk / setErrorMessage

Function setErrorMessage

src/validators/email.ts:7–7  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5
6let defaultMessage = 'Please enter a valid email address.';
7export const setErrorMessage = message => (defaultMessage = message);
8
9// RegExp from http://emailregex.com
10const EMAIL_PATTERN = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;

Callers 1

email.spec.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…