Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
22
export
function
isValidUsername (username) {
23
return
/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(username)
24
}
Callers
2
cancelIfUsernameInvalid
Method · 0.90
getInvalidUsernames
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected