From 21bab9bcf44cddfe6786fe0bb478917863a1d622 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Mon, 24 Nov 2025 21:25:53 +0100 Subject: [PATCH] Allow the leading character of a slug to be alphanumeric. Signed-off-by: John Blackbourn --- specification.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification.md b/specification.md index 1147e70..80cd868 100644 --- a/specification.md +++ b/specification.md @@ -313,10 +313,10 @@ The items of the list MUST be objects, conforming to the [Release Document](#rel The `slug` property specifies the desired "slug" for the package, which the client may use for filenames or directory names when installing the package. -The slug MUST be a string containing only alphanumeric characters, dashes, or underscores. The slug MUST start with an alphabetic character. +The slug MUST be a string containing only alphanumeric characters, dashes, or underscores. The slug MUST start with an alphanumeric character. ``` -slug = ALPHA *(ALPHA / DIGIT / "-" / "_") +slug = (ALPHA / DIGIT) *(ALPHA / DIGIT / "-" / "_") ``` Clients SHOULD validate the slug against these rules. If a slug does not validate, clients MAY strip invalid characters to form a valid slug, or ignore the slug entirely.