Skip to content

Commit 485e740

Browse files
author
Oleksii Korshenko
authored
MAGETWO-82814: Allows modules with underscores in name to add blocks to layout via XML #11765
2 parents 04140ba + 7e89128 commit 485e740

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
@@ -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)