How to use email-regex - 5 common examples

To help you get started, we’ve selected a few email-regex examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bipbop / harlan / src / js / internals / modules / socialprofile.js View on Github external
$('BPQL > body emails > email > email', ccbusca).each((idx, element) => {
                let email = $(element).text();
                if (!emailRegex({
                    exact: true
                }).test(email)) {
                    return /* void */;
                }
                newMark('fa-at', email, openEmail(report, email, document));
            });
github bipbop / harlan / src / plugins / lib / icheques / create-account.js View on Github external
form.element().submit(e => {
            e.preventDefault();

            const errors = [];
            const email = inputEmail.val();
            const password = inputPassword.val();
            const confirmPassword = inputConfirmPassword.val();

            if (!emailRegex().test(email)) {
                inputEmail.addClass('error');
                errors.push('O endereço de e-mail informado não é válido.');
            } else {
                inputEmail.removeClass('error');
            }

            if (!inputAgree[1].is(':checked')) {
                errors.push('Você precisa aceitar o contrato de usuário.');
            }

            if (!SAFE_PASSWORD.test(password)) {
                inputPassword.addClass('error');
                errors.push('A senha deve possuir no mínimo 6 dígitos.');
            } else if (password !== confirmPassword) {
                inputPassword.addClass('error');
                inputConfirmPassword.addClass('error');
github bipbop / harlan / src / js / internals / modules / billing-information.js View on Github external
                        validate: ({element}) => emailRegex().test(element.val())
                    }, {
github bipbop / harlan / src / plugins / lib / accuracy / create-store.js View on Github external
                        validate: ({element}) => emailRegex().test(element.val())
                    } ,{
github bipbop / harlan / src / js / internals / modules / welcome-screen.js View on Github external
form.element().submit(e => {
            e.preventDefault();
            const email = inputEmailAddress.val();
            if (!emailRegex().test(email)) {
                inputEmailAddress.addClass('error');
                toastr.warning('Seu endereço de email não parece ser válido.', 'Endereço de email inválido.');
                return;
            }

            controller.serverCommunication.call('INSERT INTO \'HARLANMAILLIST\'.\'Addresses\'', {
                data: {
                    address: email
                }
            });

            deleteElements(elements);
            controller.call('welcomescreen::wizard', modal);
        });

email-regex

Regular expression for matching email addresses

MIT
Latest version published 4 years ago

Package Health Score

53 / 100
Full package analysis

Popular email-regex functions