[READ-ONLY] a fast, modern browser for the npm registry
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: update npm username regex to support underscores and dots (#1134)

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

+1 -1
+1 -1
shared/schemas/user.ts
··· 1 1 import * as v from 'valibot' 2 2 3 - const NPM_USERNAME_RE = /^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/i 3 + const NPM_USERNAME_RE = /^[a-z0-9]([\w.-]*[a-z0-9])?$/i 4 4 const NPM_USERNAME_MAX_LENGTH = 50 5 5 6 6 /**