MCPcopy Create free account
hub / github.com/geekcomputers/Python / username_validation

Function username_validation

cli_master/validation_page.py:45–47  ·  view source on GitHub ↗
(username)

Source from the content-addressed store, hash-verified

43
44
45def username_validation(username):
46 # Allow only alphanumeric characters and underscores
47 return bool(re.match("^[a-zA-Z0-9_]+$", username))
48
49
50# Example usage:

Callers 1

validation_page.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected