Skip to content

Commit 6338c95

Browse files
committed
fix: fix comment to org name re
1 parent 787be6f commit 6338c95

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/api/registry/org/[org]/packages.get.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { CACHE_MAX_AGE_ONE_HOUR, NPM_REGISTRY } from '#shared/utils/constants'
22
import { FetchError } from 'ofetch'
33

4-
// Validation pattern for npm org names (alphanumeric with hyphens)
4+
// Validation pattern for npm org names - url-sage symbold and not start with a dot (incl. ~test24214. or -ex~-)
55
const NPM_ORG_NAME_RE = /^[\w~-][\w.~-]*$/
66

77
function validateOrgName(name: string): void {

0 commit comments

Comments
 (0)