Skip to content
This repository was archived by the owner on Dec 12, 2021. It is now read-only.
This repository was archived by the owner on Dec 12, 2021. It is now read-only.

email validator with empty string slow? #25

@okeydoke

Description

@okeydoke

Hey, I've been writing some unit tests for my node.js project and one of the tests is showing as slow quite often, 40-100ms. Basically its validating an empty string against an email. eg:

validate({email:""},  {
  email: {
    presence: true,
    email: true,
    length: {
      minimum: 6,
      maximum: 255
    }
  }
});

Running in the browser it seems to be about 15-20ms which isn't as bad but still seems pretty slow?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions