MCPcopy Index your code
hub / github.com/MongoEngine/mongoengine / validate_user_part

Method validate_user_part

mongoengine/fields.py:267–273  ·  view source on GitHub ↗

Validate the user part of the email address. Return True if valid and False otherwise.

(self, user_part)

Source from the content-addressed store, hash-verified

265 super().__init__(*args, **kwargs)
266
267 def validate_user_part(self, user_part):
268 """Validate the user part of the email address. Return True if
269 valid and False otherwise.
270 """
271 if self.allow_utf8_user:
272 return self.UTF8_USER_REGEX.match(user_part)
273 return self.USER_REGEX.match(user_part)
274
275 def validate_domain_part(self, domain_part):
276 """Validate the domain part of the email address. Return True if

Callers 1

validateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected