Skip to content

Commit 3ef5a9e

Browse files
committed
Fix invalid regex for entry point names
1 parent 129471f commit 3ef5a9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/specifications/entry-points.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Conceptually, an entry point is defined by three required properties:
4444
name, the consumer decides how to handle such conflicts. The name may contain
4545
any characters except ``=``, but it cannot start or end with any whitespace
4646
character, or start with ``[``. For new entry points, it is recommended to
47-
use only letters, numbers, underscores, dashes and dots (regex ``[\w-.]+``).
47+
use only letters, numbers, underscores, dots and dashes (regex ``[\w.-]+``).
4848

4949
- The **object reference** points to a Python object. It is either in the form
5050
``importable.module``, or ``importable.module:object.attr``. Each of the parts

0 commit comments

Comments
 (0)