Skip to content

Commit f7cd590

Browse files
fix: update npm username regex to support underscores and dots (#1134)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent f13279e commit f7cd590

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

shared/schemas/user.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as v from 'valibot'
22

3-
const NPM_USERNAME_RE = /^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/i
3+
const NPM_USERNAME_RE = /^[a-z0-9]([a-z0-9._-]*[a-z0-9])?$/i
44
const NPM_USERNAME_MAX_LENGTH = 50
55

66
/**

0 commit comments

Comments
 (0)