Skip to content

Commit 1a5ad5b

Browse files
authored
Update elements.xsd
looks like elementNameType validator is very strict. I've got an exception in dev mode: #0 (Magento\Framework\Config\Dom\ValidationException): Element 'block', attribute 'name': [facet 'pattern'] The value '4d072daa2b95b9d3fd3995d2faaf2993' is not accepted by the pattern '[a-zA-Z][a-zA-Z\d\-_\.]*'. Line: 645
1 parent 3ef1e28 commit 1a5ad5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/View/Layout/etc/elements.xsd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140

141141
<xs:simpleType name="elementNameType">
142142
<xs:restriction base="xs:string">
143-
<xs:pattern value="[a-zA-Z][a-zA-Z\d\-_\.]*"/>
143+
<xs:pattern value="[a-zA-Z0-9][a-zA-Z\d\-_\.]*"/>
144144
</xs:restriction>
145145
</xs:simpleType>
146146

0 commit comments

Comments
 (0)