aas-core-works / aas-core-meta

Provide formalized meta-models for Asset Administration Shell (AAS).
Other
9 stars 3 forks source link

Referable.idShort: Allow hyphens to be included in name #304

Closed s-heppner closed 5 months ago

s-heppner commented 5 months ago

Referable/idShort and Constraint AASd-002: now also allows hyphens to be included in name aas-specs#295

AASd-002 Update a now also allows hyphens to be included in name: Constraint AASd-002: idShort of Referables shall only feature letters, digits, hyphen ("-") and underscore ("_"); starting mandatory with a letter, and not ending with a hypen or underscore, i.e. ^[a-zA-Z][a-zA-Z0-9_-]*[a-zA-Z0-9_]+$.].

s-heppner commented 5 months ago

I double checked the current working branch of the spec and found the regex there to be:

^[a-zA-Z][a-zA-Z0-9_-]*[a-zA-Z0-9_]+$

See the line in the spec:

:aasd002: pass:q[[underline]#Constraint AASd-002:# _idShort_ of __Referable__s shall only feature letters, digits, 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_]+$.]

Note, how the last .] are missing in this regex compared to the one cited above. The point stems from the sentence and the ] from the AsciiDoc definition.

s-heppner commented 5 months ago

This may also be a bug in the changelog of aas-specs, though I appear to be unable to find this specific line that I quoted.