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 433494c commit ebb1108Copy full SHA for ebb1108
1 file changed
server/api/registry/org/[org]/packages.get.ts
@@ -2,7 +2,7 @@ import { CACHE_MAX_AGE_ONE_HOUR, NPM_REGISTRY } from '#shared/utils/constants'
2
import { FetchError } from 'ofetch'
3
4
// Validation pattern for npm org names (alphanumeric with hyphens)
5
-const NPM_ORG_NAME_RE = /^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i
+const NPM_ORG_NAME_RE = /^[\w~-][\w.~-]*$/i
6
7
function validateOrgName(name: string): void {
8
if (!name || name.length > 50 || !NPM_ORG_NAME_RE.test(name)) {
0 commit comments