We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f13279e commit f7cd590Copy full SHA for f7cd590
1 file changed
shared/schemas/user.ts
@@ -1,6 +1,6 @@
1
import * as v from 'valibot'
2
3
-const NPM_USERNAME_RE = /^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/i
+const NPM_USERNAME_RE = /^[a-z0-9]([a-z0-9._-]*[a-z0-9])?$/i
4
const NPM_USERNAME_MAX_LENGTH = 50
5
6
/**
0 commit comments