def validate_username(self, username):
        if not self.username_regex:
            return True
        return bool(self.username_regex.match(username))
Validate a (normalized) username.
dataset/ETHPy150Open jupyterhub/jupyterhub/jupyterhub/auth.py/Authenticator.validate_username