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 787be6f commit 6338c95Copy full SHA for 6338c95
1 file changed
server/api/registry/org/[org]/packages.get.ts
@@ -1,7 +1,7 @@
1
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)
+// Validation pattern for npm org names - url-sage symbold and not start with a dot (incl. ~test24214. or -ex~-)
5
const NPM_ORG_NAME_RE = /^[\w~-][\w.~-]*$/
6
7
function validateOrgName(name: string): void {
0 commit comments