Skip to content

Commit 4d79191

Browse files
committed
Allows modules with underscores in name to add blocks to layout via XML
Amended to allow underscore in Vendor name as well as module name
1 parent 08f0056 commit 4d79191

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

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

139139
<xs:simpleType name="blockClassType">
140140
<xs:restriction base="xs:string">
141-
<xs:pattern value="[A-Z][a-zA-Z\d]*(\\[A-Z][a-zA-Z\d]*)*"/>
141+
<xs:pattern value="[A-Z][_a-zA-Z\d]*(\\[A-Z][_a-zA-Z\d]*)*"/>
142142
</xs:restriction>
143143
</xs:simpleType>
144144

0 commit comments

Comments
 (0)