From 743aeb9c43cc9963c782f9a7df99128816b0a523 Mon Sep 17 00:00:00 2001 From: Phillip Doup <46227953+douppc@users.noreply.github.com> Date: Thu, 26 Jan 2023 14:57:44 -0500 Subject: [PATCH] Fix name regex to be truly 50 characters only. --- reference/conanfile/attributes.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/conanfile/attributes.rst b/reference/conanfile/attributes.rst index c4a00a6dd3b..713eb156ce2 100644 --- a/reference/conanfile/attributes.rst +++ b/reference/conanfile/attributes.rst @@ -11,7 +11,7 @@ Attributes name ---- This is a string, with a minimum of 2 and a maximum of 50 characters (though shorter names are recommended), that defines the package name. It will be the ``/version@user/channel`` of the package reference. -It should match the following regex ``^[a-zA-Z0-9_][a-zA-Z0-9_\+\.-]{1,50}$``, so start with alphanumeric or underscore, then alphanumeric, underscore, +, ., - characters. +It should match the following regex ``^[a-zA-Z0-9_][a-zA-Z0-9_\+\.-]{1,49}$``, so start with alphanumeric or underscore, then alphanumeric, underscore, +, ., - characters. The name is only necessary for ``export``-ing the recipe into the local cache (``export`` and ``create`` commands), if they are not defined in the command line. It might take its value from an environment variable, or even any python code that defines it (e.g. a function that reads an environment variable, or a file from disk).