From a311624d91ff2f8ec5c07cd953c40026085561c1 Mon Sep 17 00:00:00 2001 From: s-heppner Date: Wed, 21 Feb 2024 14:01:41 +0100 Subject: [PATCH] Adapt docstring of ID_short_type (#314) With v3.1 of the specification, the regex of `matches_id_short_type()` changed. While this change has already been adapted, we forgot to adapt the docstring of class `ID_short_type`. This fixes this oversight. --- aas_core_meta/v3_1.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aas_core_meta/v3_1.py b/aas_core_meta/v3_1.py index 37876ef..bc29c0d 100644 --- a/aas_core_meta/v3_1.py +++ b/aas_core_meta/v3_1.py @@ -1425,8 +1425,8 @@ class ID_short_type(Name_type, DBC): :constraint AASd-002: ID-short of :class:`Referable`'s shall only feature letters, digits, - underscore (``_``); starting mandatory with a letter. - *I.e.* ``[a-zA-Z][a-zA-Z0-9_]*``. + hyphen (``-``) and underscore (``_``); starting mandatory with a letter, + and not ending with a hyphen, *I.e.* ``^[a-zA-Z][a-zA-Z0-9_-]*[a-zA-Z0-9_]+$``. :constraint AASd-117: