MCPcopy Create free account
hub / github.com/dailydotdev/apps / normalizeUsername

Function normalizeUsername

packages/shared/src/hooks/useProfileForm.ts:41–42  ·  view source on GitHub ↗
(username: string)

Source from the content-addressed store, hash-verified

39const minUsernameLength = 3;
40const maxUsernameLength = 39;
41const normalizeUsername = (username: string): string =>
42 username.replace('@', '').trim();
43
44export const onValidateHandles = (
45 before: Partial<Handles>,

Callers 1

onValidateHandlesFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected