Skip to content

Commit

Permalink
Merge pull request #1491 from Darsstar/patch-1
Browse files Browse the repository at this point in the history
Replace regex which allows dubble hyphens by one that does not.
  • Loading branch information
chrysle authored Jan 27, 2024
2 parents dafefbc + 75728d6 commit c8f51ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/specifications/core-metadata.rst
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ of lowercase ASCII letters, ASCII numbers, and hyphen. It must start and end
with a letter or number. Hyphens cannot be followed by another hyphen. Names are
limited to those which match the following regex (which guarantees unambiguity)::

^([a-z0-9]|[a-z0-9]([a-z0-9-](?!--))*[a-z0-9])$
^[a-z0-9]+(-[a-z0-9]+)*$


The specified name may be used to make a dependency conditional on whether the
Expand Down

0 comments on commit c8f51ab

Please sign in to comment.