MCPcopy Index your code
hub / github.com/nodeSolidServer/node-solid-server / isValidUsername

Function isValidUsername

lib/common/user-utils.mjs:22–24  ·  view source on GitHub ↗
(username)

Source from the content-addressed store, hash-verified

20}
21
22export function isValidUsername (username) {
23 return /^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(username)
24}

Callers 2

getInvalidUsernamesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected