Some checks failed
/ build (map[dockerfile:./services/tasks/Dockerfile name:tasks]) (push) Failing after 1m25s
/ deploy (push) Has been skipped
/ build (map[dockerfile:./services/files/Dockerfile name:files]) (push) Failing after 1m34s
/ build (map[dockerfile:./services/app/Dockerfile name:app]) (push) Successful in 2m9s
/ build (map[dockerfile:./services/api/Dockerfile name:api]) (push) Failing after 1m42s
/ build (map[dockerfile:./services/web/Dockerfile name:web]) (push) Failing after 1m18s
/ build (map[dockerfile:./services/watchers/Dockerfile name:watchers]) (push) Failing after 1m22s
/ build (map[dockerfile:./services/hasura/Dockerfile name:hasura]) (push) Successful in 2m3s
14 lines
309 B
JavaScript
14 lines
309 B
JavaScript
function validateEmail(email) {
|
|
// Regular expression to validate the email format
|
|
const regex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/
|
|
|
|
// Test the email against the regular expression
|
|
return regex.test(email)
|
|
}
|
|
|
|
module.exports = function () {
|
|
return {
|
|
type: "string",
|
|
validate: validateEmail,
|
|
}
|
|
}
|